summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/current.h')
-rw-r--r--include/asm-ppc/current.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-ppc/current.h b/include/asm-ppc/current.h
new file mode 100644
index 0000000..8d41501
--- /dev/null
+++ b/include/asm-ppc/current.h
@@ -0,0 +1,11 @@
+#ifdef __KERNEL__
+#ifndef _PPC_CURRENT_H
+#define _PPC_CURRENT_H
+
+/*
+ * We keep `current' in r2 for speed.
+ */
+register struct task_struct *current asm ("r2");
+
+#endif /* !(_PPC_CURRENT_H) */
+#endif /* __KERNEL__ */
OpenPOWER on IntegriCloud