|
|
| File: [Development] / linux-2.4-xfs / include / asm-arm / current.h (download)
Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 9 months ago) by cattelan
Initial Import 2.4.24pre2 |
#ifndef _ASMARM_CURRENT_H
#define _ASMARM_CURRENT_H
static inline struct task_struct *get_current(void) __attribute__ (( __const__ ));
static inline struct task_struct *get_current(void)
{
register unsigned long sp asm ("sp");
return (struct task_struct *)(sp & ~0x1fff);
}
#define current (get_current())
#endif /* _ASMARM_CURRENT_H */