1 #ifndef _PARISC_PTRACE_H
2 #define _PARISC_PTRACE_H
4 /* written by Philipp Rumpf, Copyright (C) 1999 SuSE GmbH Nuernberg
5 ** Copyright (C) 2000 Grant Grundler, Hewlett-Packard
8 #include <linux/types.h>
10 /* This struct defines the way the registers are stored on the
11 stack during a system call. */
14 unsigned long gr
[32]; /* PSW is in gr[0] */
17 unsigned long iasq
[2];
18 unsigned long iaoq
[2];
24 unsigned long orig_r28
;
27 unsigned long sar
; /* CR11 */
28 unsigned long iir
; /* CR19 */
29 unsigned long isr
; /* CR20 */
30 unsigned long ior
; /* CR21 */
31 unsigned long ipsw
; /* CR22 */
32 unsigned long cr_pid
[4]; /* CR8,9,12,13 */
35 #define task_regs(task) ((struct pt_regs *) ((char *)(task) + TASK_REGS))
37 * The numbers chosen here are somewhat arbitrary but absolutely MUST
38 * not overlap with any of the number assigned in <linux/ptrace.h>.
40 * These ones are taken from IA-64 on the assumption that theirs are
41 * the most correct (and we also want to support PTRACE_SINGLEBLOCK
42 * since we have taken branch traps too)
44 #define PTRACE_SINGLEBLOCK 12 /* resume execution until next branch */
45 #define PTRACE_GETSIGINFO 13 /* get child's siginfo structure */
46 #define PTRACE_SETSIGINFO 14 /* set child's siginfo structure */
50 /* XXX should we use iaoq[1] or iaoq[0] ? */
51 #define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0)
52 #define instruction_pointer(regs) ((regs)->iaoq[0] & ~3)
53 extern void show_regs(struct pt_regs
*);