summaryrefslogtreecommitdiff
path: root/arch/nds32/include/uapi
diff options
context:
space:
mode:
authorGreentime Hu <greentime@andestech.com>2017-10-25 09:32:12 +0300
committerGreentime Hu <greentime@andestech.com>2018-02-22 05:44:34 +0300
commite9d0704aa134de05b21085e6e9dab863e7ab38f7 (patch)
tree9097860150f2f4c12024a108b5dc7d8ef83e64ac /arch/nds32/include/uapi
parentace02e2badd12e34d781780517614c42dbbf8068 (diff)
downloadlinux-e9d0704aa134de05b21085e6e9dab863e7ab38f7.tar.xz
nds32: Debugging support
This patch adds ptrace support. Signed-off-by: Vincent Chen <vincentc@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/nds32/include/uapi')
-rw-r--r--arch/nds32/include/uapi/asm/ptrace.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/nds32/include/uapi/asm/ptrace.h b/arch/nds32/include/uapi/asm/ptrace.h
new file mode 100644
index 000000000000..358c99e399d0
--- /dev/null
+++ b/arch/nds32/include/uapi/asm/ptrace.h
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+#ifndef __UAPI_ASM_NDS32_PTRACE_H
+#define __UAPI_ASM_NDS32_PTRACE_H
+
+#ifndef __ASSEMBLY__
+
+/*
+ * User structures for general purpose register.
+ */
+struct user_pt_regs {
+ long uregs[26];
+ long fp;
+ long gp;
+ long lp;
+ long sp;
+ long ipc;
+ long lb;
+ long le;
+ long lc;
+ long syscallno;
+};
+#endif
+#endif