aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/current.h
blob: 568b739e42afa6c525c3873eb9c7dcce68c1f687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_PARISC_CURRENT_H
#define _ASM_PARISC_CURRENT_H

#include <asm/special_insns.h>

#ifndef __ASSEMBLY__
struct task_struct;

static __always_inline struct task_struct *get_current(void)
{
	return (struct task_struct *) mfctl(30);
}

#define current get_current()

#endif /* __ASSEMBLY__ */

#endif /* _ASM_PARISC_CURRENT_H */