patch-2.4.25 linux-2.4.25/include/asm-ppc64/current.h
Next file: linux-2.4.25/include/asm-ppc64/elf.h
Previous file: linux-2.4.25/include/asm-ppc64/cputable.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2004-02-18 05:36:32.000000000 -0800
- Orig file:
linux-2.4.24/include/asm-ppc64/current.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.24/include/asm-ppc64/current.h linux-2.4.25/include/asm-ppc64/current.h
@@ -1,5 +1,6 @@
#ifndef _PPC64_CURRENT_H
#define _PPC64_CURRENT_H
+#include <asm/paca.h>
/*
* This program is free software; you can redistribute it and/or
@@ -7,9 +8,11 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
- * Use r13 for current since the ppc64 ABI reserves it - Anton
+ * current is in the paca (processor data area), which is pointed
+ * to by r13.
*/
-register struct task_struct *current asm ("r13");
+#define get_current() ((struct task_struct *)(get_paca()->xCurrent))
+#define current get_current()
#endif /* !(_PPC64_CURRENT_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)