summaryrefslogtreecommitdiffstats
path: root/include/asm-m32r/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-m32r/current.h')
-rw-r--r--include/asm-m32r/current.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-m32r/current.h b/include/asm-m32r/current.h
new file mode 100644
index 000000000000..c19d927ff22d
--- /dev/null
+++ b/include/asm-m32r/current.h
@@ -0,0 +1,18 @@
+#ifndef _ASM_M32R_CURRENT_H
+#define _ASM_M32R_CURRENT_H
+
+/* $Id$ */
+
+#include <linux/thread_info.h>
+
+struct task_struct;
+
+static __inline__ struct task_struct *get_current(void)
+{
+ return current_thread_info()->task;
+}
+
+#define current (get_current())
+
+#endif /* _ASM_M32R_CURRENT_H */
+