Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v2.6.15-rc2 27 lines 576 B view raw
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 11struct 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 */ 23register struct task_struct *current asm ("r2"); 24 25#endif 26 27#endif /* _ASM_POWERPC_CURRENT_H */