diff options
author | Helge Deller <deller@gmx.de> | 2008-10-17 14:48:36 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@hera.kernel.org> | 2008-10-17 15:03:23 -0400 |
commit | 81e192d6ce303b6792aa38ff35f41a1a7357f23a (patch) | |
tree | f4410647fc30739593ecd5d1a159092cdb6bde9c /arch/parisc/include/asm/ptrace.h | |
parent | 9eb1686423756f4dfb0ad8bfb02bb8bf1b89e50a (diff) |
parisc: convert to generic compat_sys_ptrace
This patch does the compat_sys_ptrace conversion for parisc.
In addition it does convert the parisc ptrace code to use the
architecture-independent ptrace infrastructure instead of own coding.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm/ptrace.h')
-rw-r--r-- | arch/parisc/include/asm/ptrace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/ptrace.h b/arch/parisc/include/asm/ptrace.h index 3e94c5d85ff5..afa5333187b4 100644 --- a/arch/parisc/include/asm/ptrace.h +++ b/arch/parisc/include/asm/ptrace.h | |||
@@ -47,6 +47,16 @@ struct pt_regs { | |||
47 | 47 | ||
48 | #define task_regs(task) ((struct pt_regs *) ((char *)(task) + TASK_REGS)) | 48 | #define task_regs(task) ((struct pt_regs *) ((char *)(task) + TASK_REGS)) |
49 | 49 | ||
50 | #define __ARCH_WANT_COMPAT_SYS_PTRACE | ||
51 | |||
52 | struct task_struct; | ||
53 | #define arch_has_single_step() 1 | ||
54 | void user_disable_single_step(struct task_struct *task); | ||
55 | void user_enable_single_step(struct task_struct *task); | ||
56 | |||
57 | #define arch_has_block_step() 1 | ||
58 | void user_enable_block_step(struct task_struct *task); | ||
59 | |||
50 | /* XXX should we use iaoq[1] or iaoq[0] ? */ | 60 | /* XXX should we use iaoq[1] or iaoq[0] ? */ |
51 | #define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0) | 61 | #define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0) |
52 | #define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0) | 62 | #define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0) |