summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc/current.h')
-rw-r--r--include/asm-sparc/current.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-sparc/current.h b/include/asm-sparc/current.h
new file mode 100644
index 000000000..254ce5618
--- /dev/null
+++ b/include/asm-sparc/current.h
@@ -0,0 +1,13 @@
+#ifndef _SPARC_CURRENT_H
+#define _SPARC_CURRENT_H
+
+/* Some architectures may want to do something "clever" here since
+ * this is the most frequently accessed piece of data in the entire
+ * kernel.
+ */
+extern struct task_struct *current_set[NR_CPUS];
+
+/* Sparc rules... */
+register struct task_struct *current asm("g6");
+
+#endif /* !(_SPARC_CURRENT_H) */