summaryrefslogtreecommitdiff
path: root/arch/h8300/include/uapi/asm/ptrace.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-12-19 16:07:13 +0000
committerDavid Howells <dhowells@redhat.com>2012-12-19 16:07:13 +0000
commit1ec94e75def550548725a0bd77312ed6c266687a (patch)
tree210613672db0126543ef0138950a245bbab6aee2 /arch/h8300/include/uapi/asm/ptrace.h
parent752451f01c4567b506bf4343082682dbb8fb30dd (diff)
downloadlwn-1ec94e75def550548725a0bd77312ed6c266687a.tar.gz
lwn-1ec94e75def550548725a0bd77312ed6c266687a.zip
UAPI: (Scripted) Disintegrate arch/h8300/include/asm
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/h8300/include/uapi/asm/ptrace.h')
-rw-r--r--arch/h8300/include/uapi/asm/ptrace.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/h8300/include/uapi/asm/ptrace.h b/arch/h8300/include/uapi/asm/ptrace.h
new file mode 100644
index 000000000000..ef39ec5977b6
--- /dev/null
+++ b/arch/h8300/include/uapi/asm/ptrace.h
@@ -0,0 +1,44 @@
+#ifndef _UAPI_H8300_PTRACE_H
+#define _UAPI_H8300_PTRACE_H
+
+#ifndef __ASSEMBLY__
+
+#define PT_ER1 0
+#define PT_ER2 1
+#define PT_ER3 2
+#define PT_ER4 3
+#define PT_ER5 4
+#define PT_ER6 5
+#define PT_ER0 6
+#define PT_ORIG_ER0 7
+#define PT_CCR 8
+#define PT_PC 9
+#define PT_USP 10
+#define PT_EXR 12
+
+/* this struct defines the way the registers are stored on the
+ stack during a system call. */
+
+struct pt_regs {
+ long retpc;
+ long er4;
+ long er5;
+ long er6;
+ long er3;
+ long er2;
+ long er1;
+ long orig_er0;
+ unsigned short ccr;
+ long er0;
+ long vector;
+#if defined(CONFIG_CPU_H8S)
+ unsigned short exr;
+#endif
+ unsigned long pc;
+} __attribute__((aligned(2),packed));
+
+#define PTRACE_GETREGS 12
+#define PTRACE_SETREGS 13
+
+#endif /* __ASSEMBLY__ */
+#endif /* _UAPI_H8300_PTRACE_H */