Import 2.1.116pre2
[davej-history.git] / include / asm-i386 / current.h
blobbc1496a2c9b05320220ca28bf2d151cc6e401391
1 #ifndef _I386_CURRENT_H
2 #define _I386_CURRENT_H
4 struct task_struct;
6 static inline struct task_struct * get_current(void)
8 struct task_struct *current;
9 __asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
10 return current;
13 #define current get_current()
15 #endif /* !(_I386_CURRENT_H) */