Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / include / asm-mips / current.h
blob3015ce4bd256203a397a0f97ac9bfd36be8855b9
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
5 * for more details.
7 * Copyright (C) 1998 Ralf Baechle
8 * Copyright (C) 1999 Silicon Graphics, Inc.
9 */
10 #ifndef _ASM_CURRENT_H
11 #define _ASM_CURRENT_H
13 #ifdef _LANGUAGE_C
15 /* MIPS rules... */
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
23 * is not loaded.
25 #define _GET_CURRENT(reg) \
26 lui reg, %hi(kernelsp); \
27 .set push; \
28 .set reorder; \
29 lw reg, %lo(kernelsp)(reg); \
30 .set pop; \
31 ori reg, 8191; \
32 xori reg, 8191
34 #endif
36 #endif /* _ASM_CURRENT_H */