xref: /openbmc/linux/arch/ia64/include/asm/current.h (revision 7f30491ccd28627742e37899453ae20e3da8e18f)
1*7f30491cSTony Luck #ifndef _ASM_IA64_CURRENT_H
2*7f30491cSTony Luck #define _ASM_IA64_CURRENT_H
3*7f30491cSTony Luck 
4*7f30491cSTony Luck /*
5*7f30491cSTony Luck  * Modified 1998-2000
6*7f30491cSTony Luck  *	David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
7*7f30491cSTony Luck  */
8*7f30491cSTony Luck 
9*7f30491cSTony Luck #include <asm/intrinsics.h>
10*7f30491cSTony Luck 
11*7f30491cSTony Luck /*
12*7f30491cSTony Luck  * In kernel mode, thread pointer (r13) is used to point to the current task
13*7f30491cSTony Luck  * structure.
14*7f30491cSTony Luck  */
15*7f30491cSTony Luck #define current	((struct task_struct *) ia64_getreg(_IA64_REG_TP))
16*7f30491cSTony Luck 
17*7f30491cSTony Luck #endif /* _ASM_IA64_CURRENT_H */
18