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 */
69 } __attribute__ ((packed));
71 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
72 #define PTRACE_GETREGS 12
73 #define PTRACE_SETREGS 13
74 #define PTRACE_GETFPREGS 14
75 #define PTRACE_SETFPREGS 15
76 #define PTRACE_GETFPXREGS 18
77 #define PTRACE_SETFPXREGS 19
79 #define PTRACE_SETOPTIONS 21
81 /* options set using PTRACE_SETOPTIONS */
82 #define PTRACE_O_TRACESYSGOOD 0x00000001
85 #define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->xcs))
86 #define instruction_pointer(regs) ((regs)->eip)
87 extern void show_regs(struct pt_regs *);