xref: /linux/arch/parisc/include/asm/current.h (revision e3617433c3da3d0859a4bc67f3f975e87f650ebf)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_PARISC_CURRENT_H
3 #define _ASM_PARISC_CURRENT_H
4 
5 #include <asm/special_insns.h>
6 
7 #ifndef __ASSEMBLY__
8 struct task_struct;
9 
10 static __always_inline struct task_struct *get_current(void)
11 {
12 	return (struct task_struct *) mfctl(30);
13 }
14 
15 #define current get_current()
16 
17 #endif /* __ASSEMBLY__ */
18 
19 #endif /* _ASM_PARISC_CURRENT_H */
20