]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - include/asm-powerpc/current.h
[PATCH] powerpc: Merge current.h
[karo-tx-linux.git] / include / asm-powerpc / current.h
1 #ifndef _ASM_POWERPC_CURRENT_H
2 #define _ASM_POWERPC_CURRENT_H
3
4 /*
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version
8  * 2 of the License, or (at your option) any later version.
9  */
10
11 struct task_struct;
12
13 #ifdef __powerpc64__
14 #include <asm/paca.h>
15
16 #define current         (get_paca()->__current)
17
18 #else
19
20 /*
21  * We keep `current' in r2 for speed.
22  */
23 register struct task_struct *current asm ("r2");
24
25 #endif
26
27 #endif /* _ASM_POWERPC_CURRENT_H */