clean
[linux-2.4.21-pre4.git] / include / asm-sh / current.h
1 #ifndef __ASM_SH_CURRENT_H
2 #define __ASM_SH_CURRENT_H
3
4 /*
5  * Copyright (C) 1999 Niibe Yutaka
6  *
7  */
8
9 struct task_struct;
10
11 static __inline__ struct task_struct * get_current(void)
12 {
13         struct task_struct *current;
14
15         __asm__("stc    r7_bank, %0"
16                 :"=r" (current));
17
18         return current;
19 }
20
21 #define current get_current()
22
23 #endif /* __ASM_SH_CURRENT_H */