aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/asm/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/include/asm/current.h')
-rw-r--r--arch/nds32/include/asm/current.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/current.h b/arch/nds32/include/asm/current.h
new file mode 100644
index 000000000000..b4dcd22b7bcb
--- /dev/null
+++ b/arch/nds32/include/asm/current.h
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+#ifndef _ASM_NDS32_CURRENT_H
+#define _ASM_NDS32_CURRENT_H
+
+#ifndef __ASSEMBLY__
+register struct task_struct *current asm("$r25");
+#endif /* __ASSEMBLY__ */
+#define tsk $r25
+
+#endif /* _ASM_NDS32_CURRENT_H */