aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/ptrace.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-05-15 03:34:44 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-15 03:34:44 -0400
commit63fe46da9c380b3f2bbdf3765044649517cc717c (patch)
tree9478c1aca1d692b408955aea20c9cd9a37e589c0 /include/asm-sparc/ptrace.h
parent99dd1a2b8347ac2ae802300b7862f6f7bcf17139 (diff)
parent066b2118976e6e7cc50eed39e2747c75343a23c4 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/iwlwifi/iwl-4965-rs.c drivers/net/wireless/rt2x00/rt61pci.c
Diffstat (limited to 'include/asm-sparc/ptrace.h')
-rw-r--r--include/asm-sparc/ptrace.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-sparc/ptrace.h b/include/asm-sparc/ptrace.h
index 8201a7b29d49..0afb867d6c1b 100644
--- a/include/asm-sparc/ptrace.h
+++ b/include/asm-sparc/ptrace.h
@@ -10,6 +10,8 @@
10 10
11#ifndef __ASSEMBLY__ 11#ifndef __ASSEMBLY__
12 12
13#include <linux/types.h>
14
13struct pt_regs { 15struct pt_regs {
14 unsigned long psr; 16 unsigned long psr;
15 unsigned long pc; 17 unsigned long pc;
@@ -39,6 +41,16 @@ struct pt_regs {
39#define UREG_FP UREG_I6 41#define UREG_FP UREG_I6
40#define UREG_RETPC UREG_I7 42#define UREG_RETPC UREG_I7
41 43
44static inline bool pt_regs_is_syscall(struct pt_regs *regs)
45{
46 return (regs->psr & PSR_SYSCALL);
47}
48
49static inline bool pt_regs_clear_syscall(struct pt_regs *regs)
50{
51 return (regs->psr &= ~PSR_SYSCALL);
52}
53
42/* A register window */ 54/* A register window */
43struct reg_window { 55struct reg_window {
44 unsigned long locals[8]; 56 unsigned long locals[8];
@@ -149,6 +161,7 @@ extern void show_regs(struct pt_regs *);
149#define SF_XXARG 0x5c 161#define SF_XXARG 0x5c
150 162
151/* Stuff for the ptrace system call */ 163/* Stuff for the ptrace system call */
164#define PTRACE_SPARC_DETACH 11
152#define PTRACE_GETREGS 12 165#define PTRACE_GETREGS 12
153#define PTRACE_SETREGS 13 166#define PTRACE_SETREGS 13
154#define PTRACE_GETFPREGS 14 167#define PTRACE_GETFPREGS 14