Merge with Linux 2.3.99-pre4.
[linux-2.6/linux-mips.git] / include / asm-sh / current.h
blob3bd231173df6090164fc4348d99a15827ab32a35
1 #ifndef __ASM_SH_CURRENT_H
2 #define __ASM_SH_CURRENT_H
4 /*
5 * Copyright (C) 1999 Niibe Yutaka
7 */
9 struct task_struct;
11 static __inline__ struct task_struct * get_current(void)
13 struct task_struct *current;
15 __asm__("stc $r4_bank, %0\n\t"
16 "add %1, %0"
17 :"=&r" (current)
18 :"r" (-8192));
19 return current;
22 #define current get_current()
24 #endif /* __ASM_SH_CURRENT_H */