* [2.6 patch] sparc64: global_reg_snapshot is not for userspace
@ 2008-05-25 16:58 Adrian Bunk
2008-05-26 5:50 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-05-25 16:58 UTC (permalink / raw)
To: David S. Miller; +Cc: sparclinux, linux-kernel
global_reg_snapshot shouldn't be visible in our userspace headers.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
include/asm-sparc64/ptrace.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
bcd3ca7553a2f3e416db385fd976ef5b862b1370 diff --git a/include/asm-sparc64/ptrace.h b/include/asm-sparc64/ptrace.h
index d8a56cd..b163da7 100644
--- a/include/asm-sparc64/ptrace.h
+++ b/include/asm-sparc64/ptrace.h
@@ -126,6 +126,8 @@ struct sparc_trapf {
#define TRACEREG32_SZ sizeof(struct pt_regs32)
#define STACKFRAME32_SZ sizeof(struct sparc_stackf32)
+#ifdef __KERNEL__
+
struct global_reg_snapshot {
unsigned long tstate;
unsigned long tpc;
@@ -137,8 +139,6 @@ struct global_reg_snapshot {
unsigned long pad2;
};
-#ifdef __KERNEL__
-
#define __ARCH_WANT_COMPAT_SYS_PTRACE
#define force_successful_syscall_return() \
@@ -306,6 +306,8 @@ extern void __show_regs(struct pt_regs *);
#define SF_XARG5 0x58
#define SF_XXARG 0x5c
+#ifdef __KERNEL__
+
/* global_reg_snapshot offsets */
#define GR_SNAP_TSTATE 0x00
#define GR_SNAP_TPC 0x08
@@ -316,6 +318,8 @@ extern void __show_regs(struct pt_regs *);
#define GR_SNAP_PAD1 0x30
#define GR_SNAP_PAD2 0x38
+#endif /* __KERNEL__ */
+
/* Stuff for the ptrace system call */
#define PTRACE_SPARC_DETACH 11
#define PTRACE_GETREGS 12
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] sparc64: global_reg_snapshot is not for userspace
2008-05-25 16:58 [2.6 patch] sparc64: global_reg_snapshot is not for userspace Adrian Bunk
@ 2008-05-26 5:50 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-05-26 5:50 UTC (permalink / raw)
To: bunk; +Cc: sparclinux, linux-kernel
From: Adrian Bunk <bunk@kernel.org>
Date: Sun, 25 May 2008 19:58:13 +0300
> global_reg_snapshot shouldn't be visible in our userspace headers.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Applied, thanks Adrian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-26 5:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-25 16:58 [2.6 patch] sparc64: global_reg_snapshot is not for userspace Adrian Bunk
2008-05-26 5:50 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®