1 /* $Id: current.h,v 1.5 1999/07/26 19:42:43 harald Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
7 * Copyright (C) 1998 Ralf Baechle
8 * Copyright (C) 1999 Silicon Graphics, Inc.
10 #ifndef _ASM_CURRENT_H
11 #define _ASM_CURRENT_H
16 register struct task_struct
*current
asm("$28");
18 #endif /* _LANGUAGE_C */
19 #ifdef _LANGUAGE_ASSEMBLY
22 * Special variant for use by exception handlers when the stack pointer
25 #define _GET_CURRENT(reg) \
26 lui reg, %hi(kernelsp); \
29 lw reg, %lo(kernelsp)(reg); \
36 #endif /* _ASM_CURRENT_H */