1 #ifndef __ASM_CURRENT_H
2 #define __ASM_CURRENT_H
4 #include <linux/compiler.h>
6 #include <asm/sysreg.h>
12 static __always_inline struct task_struct *get_current(void)
14 return (struct task_struct *)read_sysreg(sp_el0);
17 #define current get_current()
19 #endif /* __ASSEMBLY__ */
21 #endif /* __ASM_CURRENT_H */