summaryrefslogtreecommitdiff
path: root/include/asm-s390/ptrace.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-05-07 11:22:57 +0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-05-07 11:23:02 +0400
commitb499d76bfd78e900039155247e1c21bfdf807b7b (patch)
treeee12a2e36a035540cf3b99059fdca62b768f2803 /include/asm-s390/ptrace.h
parentc6ca1850e78d60c299ceb4c240a04af9e2384f70 (diff)
downloadlinux-b499d76bfd78e900039155247e1c21bfdf807b7b.tar.xz
[S390] compat ptrace cleanup
This removes redundant arch code for generic ptrace requests already handled by ptrace_request and compat_ptrace_request. It simplifies things to just have the standard entry points, and use the generic compat_sys_ptrace. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/ptrace.h')
-rw-r--r--include/asm-s390/ptrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-s390/ptrace.h b/include/asm-s390/ptrace.h
index 441d7c260857..d7d4e2eb3e6f 100644
--- a/include/asm-s390/ptrace.h
+++ b/include/asm-s390/ptrace.h
@@ -471,6 +471,8 @@ struct task_struct;
extern void user_enable_single_step(struct task_struct *);
extern void user_disable_single_step(struct task_struct *);
+#define __ARCH_WANT_COMPAT_SYS_PTRACE
+
#define user_mode(regs) (((regs)->psw.mask & PSW_MASK_PSTATE) != 0)
#define instruction_pointer(regs) ((regs)->psw.addr & PSW_ADDR_INSN)
#define regs_return_value(regs)((regs)->gprs[2])