more changes on original files
[linux-2.4.git] / include / asm-arm / current.h
1 #ifndef _ASMARM_CURRENT_H
2 #define _ASMARM_CURRENT_H
3
4 static inline struct task_struct *get_current(void) __attribute__ (( __const__ ));
5
6 static inline struct task_struct *get_current(void)
7 {
8         register unsigned long sp asm ("sp");
9         return (struct task_struct *)(sp & ~0x1fff);
10 }
11
12 #define current (get_current())
13
14 #endif /* _ASMARM_CURRENT_H */