aboutsummaryrefslogtreecommitdiffstats
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 000000000000..8d41501ba10d
--- /dev/null
+++ b/include/asm-ppc/current.h
@@ -0,0 +1,11 @@
1#ifdef __KERNEL__
2#ifndef _PPC_CURRENT_H
3#define _PPC_CURRENT_H
4
5/*
6 * We keep `current' in r2 for speed.
7 */
8register struct task_struct *current asm ("r2");
9
10#endif /* !(_PPC_CURRENT_H) */
11#endif /* __KERNEL__ */