aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-07 06:00:17 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-07 06:00:17 -0500
commit9775369ec06bad8edb2fbd8c77316f49b439c225 (patch)
tree14b0cb23d5fad3dbd99da0e21cf1b7e3db92595f /include
parent190aa9f60f9575d1b7382cd1ee33e2589208c514 (diff)
[SPARC]: Move over to arch_ptrace().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc/ptrace.h5
-rw-r--r--include/asm-sparc64/ptrace.h16
2 files changed, 0 insertions, 21 deletions
diff --git a/include/asm-sparc/ptrace.h b/include/asm-sparc/ptrace.h
index a84345ba8bee..8201a7b29d49 100644
--- a/include/asm-sparc/ptrace.h
+++ b/include/asm-sparc/ptrace.h
@@ -61,8 +61,6 @@ struct sparc_stackf {
61 61
62#ifdef __KERNEL__ 62#ifdef __KERNEL__
63 63
64#define __ARCH_SYS_PTRACE 1
65
66#define user_mode(regs) (!((regs)->psr & PSR_PS)) 64#define user_mode(regs) (!((regs)->psr & PSR_PS))
67#define instruction_pointer(regs) ((regs)->pc) 65#define instruction_pointer(regs) ((regs)->pc)
68unsigned long profile_pc(struct pt_regs *); 66unsigned long profile_pc(struct pt_regs *);
@@ -162,7 +160,4 @@ extern void show_regs(struct pt_regs *);
162#define PTRACE_GETFPAREGS 20 160#define PTRACE_GETFPAREGS 20
163#define PTRACE_SETFPAREGS 21 161#define PTRACE_SETFPAREGS 21
164 162
165#define PTRACE_GETUCODE 29 /* stupid bsd-ism */
166
167
168#endif /* !(_SPARC_PTRACE_H) */ 163#endif /* !(_SPARC_PTRACE_H) */
diff --git a/include/asm-sparc64/ptrace.h b/include/asm-sparc64/ptrace.h
index 2ba989b3056e..734a767f0a4e 100644
--- a/include/asm-sparc64/ptrace.h
+++ b/include/asm-sparc64/ptrace.h
@@ -95,8 +95,6 @@ struct sparc_trapf {
95 95
96#ifdef __KERNEL__ 96#ifdef __KERNEL__
97 97
98#define __ARCH_SYS_PTRACE 1
99
100#define force_successful_syscall_return() \ 98#define force_successful_syscall_return() \
101do { current_thread_info()->syscall_noerror = 1; \ 99do { current_thread_info()->syscall_noerror = 1; \
102} while (0) 100} while (0)
@@ -282,18 +280,4 @@ extern void show_regs(struct pt_regs *);
282#define PTRACE_GETFPREGS64 25 280#define PTRACE_GETFPREGS64 25
283#define PTRACE_SETFPREGS64 26 281#define PTRACE_SETFPREGS64 26
284 282
285#define PTRACE_GETUCODE 29 /* stupid bsd-ism */
286
287/* These are for 32-bit processes debugging 64-bit ones.
288 * Here addr and addr2 are passed in %g2 and %g3 respectively.
289 */
290#define PTRACE_PEEKTEXT64 (30 + PTRACE_PEEKTEXT)
291#define PTRACE_POKETEXT64 (30 + PTRACE_POKETEXT)
292#define PTRACE_PEEKDATA64 (30 + PTRACE_PEEKDATA)
293#define PTRACE_POKEDATA64 (30 + PTRACE_POKEDATA)
294#define PTRACE_READDATA64 (30 + PTRACE_READDATA)
295#define PTRACE_WRITEDATA64 (30 + PTRACE_WRITEDATA)
296#define PTRACE_READTEXT64 (30 + PTRACE_READTEXT)
297#define PTRACE_WRITETEXT64 (30 + PTRACE_WRITETEXT)
298
299#endif /* !(_SPARC64_PTRACE_H) */ 283#endif /* !(_SPARC64_PTRACE_H) */