diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-05-19 01:09:05 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-05-19 01:09:05 -0400 |
commit | c203e45f069af47ca7623e4dcd8c00bfba2722e4 (patch) | |
tree | 4563115b6565dcfd97015c1c9366fb3d07cabf19 /include/asm-sparc64/ptrace.h | |
parent | a94477da38e0b261a7ecea71f4c95a3bcd5be69c (diff) | |
parent | b8291ad07a7f3b5b990900f0001198ac23ba893e (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'include/asm-sparc64/ptrace.h')
-rw-r--r-- | include/asm-sparc64/ptrace.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/asm-sparc64/ptrace.h b/include/asm-sparc64/ptrace.h index 714b81956f32..90972a5ada59 100644 --- a/include/asm-sparc64/ptrace.h +++ b/include/asm-sparc64/ptrace.h | |||
@@ -42,16 +42,14 @@ static inline int pt_regs_trap_type(struct pt_regs *regs) | |||
42 | return regs->magic & 0x1ff; | 42 | return regs->magic & 0x1ff; |
43 | } | 43 | } |
44 | 44 | ||
45 | static inline int pt_regs_clear_trap_type(struct pt_regs *regs) | 45 | static inline bool pt_regs_is_syscall(struct pt_regs *regs) |
46 | { | 46 | { |
47 | return regs->magic &= ~0x1ff; | 47 | return (regs->tstate & TSTATE_SYSCALL); |
48 | } | 48 | } |
49 | 49 | ||
50 | static inline bool pt_regs_is_syscall(struct pt_regs *regs) | 50 | static inline bool pt_regs_clear_syscall(struct pt_regs *regs) |
51 | { | 51 | { |
52 | int tt = pt_regs_trap_type(regs); | 52 | return (regs->tstate &= ~TSTATE_SYSCALL); |
53 | |||
54 | return (tt == 0x110 || tt == 0x111 || tt == 0x16d); | ||
55 | } | 53 | } |
56 | 54 | ||
57 | struct pt_regs32 { | 55 | struct pt_regs32 { |
@@ -298,6 +296,7 @@ extern void __show_regs(struct pt_regs *); | |||
298 | #define SF_XXARG 0x5c | 296 | #define SF_XXARG 0x5c |
299 | 297 | ||
300 | /* Stuff for the ptrace system call */ | 298 | /* Stuff for the ptrace system call */ |
299 | #define PTRACE_SPARC_DETACH 11 | ||
301 | #define PTRACE_GETREGS 12 | 300 | #define PTRACE_GETREGS 12 |
302 | #define PTRACE_SETREGS 13 | 301 | #define PTRACE_SETREGS 13 |
303 | #define PTRACE_GETFPREGS 14 | 302 | #define PTRACE_GETFPREGS 14 |