1 #ifndef __ASM_SH_PTRACE_H
2 #define __ASM_SH_PTRACE_H
4 #include <asm/processor.h>
8 * Copyright (C) 1999, 2000 Niibe Yutaka
13 * GCC defines register number like this:
14 * -----------------------------
15 * 0 - 15 are integer registers
16 * 17 - 22 are control/special registers
17 * 24 - 39 fp registers
18 * 40 - 47 xd registers
20 * -----------------------------
22 * We follows above, except:
23 * 16 --- program counter (PC)
25 * 23 --- floating point communication register
38 #define REG_SYSCALL 22
43 #define REG_FPREG15 39
45 #define REG_XDREG14 47
48 /* options set using PTRACE_SETOPTIONS */
49 #define PTRACE_O_TRACESYSGOOD 0x00000001
52 * This struct defines the way the registers are stored on the
53 * kernel stack during a system call or other kernel entry.
56 unsigned long regs
[16];
67 #define user_mode(regs) (((regs)->sr & 0x40000000)==0)
68 #define instruction_pointer(regs) ((regs)->pc)
69 extern void show_regs(struct pt_regs
*);
72 #endif /* __ASM_SH_PTRACE_H */