more changes on original files
[linux-2.4.git] / include / asm-parisc / current.h
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         register unsigned long cr;
11
12         __asm__ __volatile__("mfctl %%cr30,%0" : "=r" (cr) );
13         return (struct task_struct *)cr;
14 }
15  
16 #define current get_current()
17
18 #endif /* !(_PARISC_CURRENT_H) */