1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 27f30491cSTony Luck #ifndef _ASM_IA64_CURRENT_H 37f30491cSTony Luck #define _ASM_IA64_CURRENT_H 47f30491cSTony Luck 57f30491cSTony Luck /* 67f30491cSTony Luck * Modified 1998-2000 77f30491cSTony Luck * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co 87f30491cSTony Luck */ 97f30491cSTony Luck 107f30491cSTony Luck #include <asm/intrinsics.h> 117f30491cSTony Luck 127f30491cSTony Luck /* 137f30491cSTony Luck * In kernel mode, thread pointer (r13) is used to point to the current task 147f30491cSTony Luck * structure. 157f30491cSTony Luck */ 167f30491cSTony Luck #define current ((struct task_struct *) ia64_getreg(_IA64_REG_TP)) 177f30491cSTony Luck 187f30491cSTony Luck #endif /* _ASM_IA64_CURRENT_H */ 19