aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/include/asm/ptrace.h')
-rw-r--r--arch/openrisc/include/asm/ptrace.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/openrisc/include/asm/ptrace.h b/arch/openrisc/include/asm/ptrace.h
index 8555c0c3d4d7..6ca17264c399 100644
--- a/arch/openrisc/include/asm/ptrace.h
+++ b/arch/openrisc/include/asm/ptrace.h
@@ -15,25 +15,12 @@
15 * the Free Software Foundation; either version 2 of the License, or 15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version. 16 * (at your option) any later version.
17 */ 17 */
18
19#ifndef __ASM_OPENRISC_PTRACE_H 18#ifndef __ASM_OPENRISC_PTRACE_H
20#define __ASM_OPENRISC_PTRACE_H 19#define __ASM_OPENRISC_PTRACE_H
21 20
22#ifndef __ASSEMBLY__
23/*
24 * This is the layout of the regset returned by the GETREGSET ptrace call
25 */
26struct user_regs_struct {
27 /* GPR R0-R31... */
28 unsigned long gpr[32];
29 unsigned long pc;
30 unsigned long sr;
31};
32#endif
33
34#ifdef __KERNEL__
35 21
36#include <asm/spr_defs.h> 22#include <asm/spr_defs.h>
23#include <uapi/asm/ptrace.h>
37 24
38/* 25/*
39 * Make kernel PTrace/register structures opaque to userspace... userspace can 26 * Make kernel PTrace/register structures opaque to userspace... userspace can
@@ -134,6 +121,4 @@ static inline long regs_return_value(struct pt_regs *regs)
134#define PT_ORIG_GPR11 132 121#define PT_ORIG_GPR11 132
135#define PT_SYSCALLNO 136 122#define PT_SYSCALLNO 136
136 123
137#endif /* __KERNEL__ */
138
139#endif /* __ASM_OPENRISC_PTRACE_H */ 124#endif /* __ASM_OPENRISC_PTRACE_H */