| /* this struct defines the way the registers are stored on the |
| stack during a system call. */ |
| } __attribute__ ((packed)); |
| /* Pushed by irq_common_entry */ |
| /* Pushed by vector handler (irq_<num>) */ |
| /* Pushed by cpu in response to interrupt */ |
| } __attribute__ ((packed)); |
| /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ |
| #define PTRACE_GETREGS 12 |
| #define PTRACE_SETREGS 13 |
| #define PTRACE_GETFPREGS 14 |
| #define PTRACE_SETFPREGS 15 |
| #define PTRACE_GETFPXREGS 18 |
| #define PTRACE_SETFPXREGS 19 |
| #define PTRACE_SETOPTIONS 21 |
| /* options set using PTRACE_SETOPTIONS */ |
| #define PTRACE_O_TRACESYSGOOD 0x00000001 |
| #define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->xcs)) |
| #define instruction_pointer(regs) ((regs)->eip) |
| extern void show_regs(struct pt_regs *); |