Skip to content

Commit

Permalink
parisc: convert to generic compat_sys_ptrace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helge Deller authored and Kyle McMartin committed Oct 17, 2008
1 parent 9eb1686 commit 81e192d
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 258 deletions.
10 changes: 10 additions & 0 deletions arch/parisc/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ struct pt_regs {

#define task_regs(task) ((struct pt_regs *) ((char *)(task) + TASK_REGS))

#define __ARCH_WANT_COMPAT_SYS_PTRACE

struct task_struct;
#define arch_has_single_step() 1
void user_disable_single_step(struct task_struct *task);
void user_enable_single_step(struct task_struct *task);

#define arch_has_block_step() 1
void user_enable_block_step(struct task_struct *task);

/* XXX should we use iaoq[1] or iaoq[0] ? */
#define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0)
#define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0)
Expand Down
Loading

0 comments on commit 81e192d

Please sign in to comment.