Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
Browse files Browse the repository at this point in the history
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
  sparc64: global_reg_snapshot is not for userspace
  • Loading branch information
Linus Torvalds committed May 26, 2008
2 parents c5e6fd2 + 551dec4 commit 0dfdf77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/asm-sparc64/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -137,8 +139,6 @@ struct global_reg_snapshot {
unsigned long pad2;
};

#ifdef __KERNEL__

#define __ARCH_WANT_COMPAT_SYS_PTRACE

#define force_successful_syscall_return() \
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0dfdf77

Please sign in to comment.