* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / include / asm-sh / current.h
blobfe65bfcc944a8f5eb97be31daed4ec7a334bbec3
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 */