summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/ptrace.h
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2012-04-10 10:49:13 +0200
committerJonas Bonn <jonas@southpole.se>2012-05-08 11:43:30 +0200
commitb0e026f4dc118752382fa926431b4512a8042e09 (patch)
tree6d2d91a655e9da94dc96c19342ca87421676f9df /arch/openrisc/include/asm/ptrace.h
parent4971f2bdb746e6cc8423ea60f99694884f6052c5 (diff)
downloadlinux-stable-b0e026f4dc118752382fa926431b4512a8042e09.tar.gz
linux-stable-b0e026f4dc118752382fa926431b4512a8042e09.tar.bz2
linux-stable-b0e026f4dc118752382fa926431b4512a8042e09.zip
openrisc: header file cleanups
elf.h: We can export some of these symbols to userspace. libc needs them and we just as well provide them as asm/elf.h as copying them into separate libc headers. ptrace.h: Having padding in the user_regs_struct isn't of any particular value and just confuses GDB. spr_defs isn't needed in userspace; libc has its own copy anyway. Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc/include/asm/ptrace.h')
-rw-r--r--arch/openrisc/include/asm/ptrace.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/openrisc/include/asm/ptrace.h b/arch/openrisc/include/asm/ptrace.h
index 4651a737591d..8555c0c3d4d7 100644
--- a/arch/openrisc/include/asm/ptrace.h
+++ b/arch/openrisc/include/asm/ptrace.h
@@ -19,8 +19,6 @@
#ifndef __ASM_OPENRISC_PTRACE_H
#define __ASM_OPENRISC_PTRACE_H
-#include <asm/spr_defs.h>
-
#ifndef __ASSEMBLY__
/*
* This is the layout of the regset returned by the GETREGSET ptrace call
@@ -30,13 +28,13 @@ struct user_regs_struct {
unsigned long gpr[32];
unsigned long pc;
unsigned long sr;
- unsigned long pad1;
- unsigned long pad2;
};
#endif
#ifdef __KERNEL__
+#include <asm/spr_defs.h>
+
/*
* Make kernel PTrace/register structures opaque to userspace... userspace can
* access thread state via the regset mechanism. This allows us a bit of