1 #ifndef _I386_PTRACE_H 2 #define _I386_PTRACE_H 3 4 5 /* this struct defines the way the registers are stored on the 6 stack during a system call. */ 7 8 struct pt_regs { 9 unsigned long ps; 10 unsigned long pc; 11 unsigned long gp; 12 unsigned long a0; 13 unsigned long a1; 14 unsigned long a2; 15 }; 16 17 #define user_mode(regs) ((regs)->ps & 8) 18 19 #endif