1 /* $Id: current.h,v 1.4 1998/07/20 17:52:19 ralf 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
9 #ifndef __ASM_MIPS_CURRENT_H
10 #define __ASM_MIPS_CURRENT_H
15 register struct task_struct
*current
asm("$28");
17 #endif /* _LANGUAGE_C */
18 #ifdef _LANGUAGE_ASSEMBLY
21 * Special variant for use by exception handlers when the stack pointer
24 #define _GET_CURRENT(reg) \
25 lui reg, %hi(kernelsp); \
28 lw reg, %lo(kernelsp)(reg); \
35 #endif /* __ASM_MIPS_CURRENT_H */