ia64/xen-unstable

view old/xenolinux-2.4.16-sparse/include/asm-xeno/current.h @ 235:d7d0a23b2e07

bitkeeper revision 1.93 (3e5a4e6bkPheUp3x1uufN2MS3LAB7A)

Latest and Greatest version of XenoLinux based on the Linux-2.4.21-pre4
kernel.
author iap10@labyrinth.cl.cam.ac.uk
date Mon Feb 24 16:55:07 2003 +0000 (2003-02-24)
parents
children
line source
1 #ifndef _I386_CURRENT_H
2 #define _I386_CURRENT_H
4 struct task_struct;
6 static inline struct task_struct * get_current(void)
7 {
8 struct task_struct *current;
9 __asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
10 return current;
11 }
13 #define current get_current()
15 #endif /* !(_I386_CURRENT_H) */