1 #ifndef _PARISC_CURRENT_H
2 #define _PARISC_CURRENT_H
3
4 #include <asm/processor.h>
5
6 struct task_struct;
7
8 static inline struct task_struct * get_current(void)
9 {
10 struct task_struct *current;
11
12 asm("copy 30,%0" : "=r" (current));
13
14 return (struct task_struct *)((long) current & ~(THREAD_SIZE-1));
15 }
16
17 #define current get_current()
18
19 #endif /* !(_PARISC_CURRENT_H) */
20
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.