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