1 #ifndef _PARISC_CURRENT_H
2 #define _PARISC_CURRENT_H
4 #include <asm/processor.h>
8 static inline struct task_struct
* get_current(void)
10 struct task_struct
*current
;
12 asm("copy 30,%0" : "=r" (current
));
14 return (struct task_struct
*)((long) current
& ~(THREAD_SIZE
-1));
17 #define current get_current()
19 #endif /* !(_PARISC_CURRENT_H) */