patch-2.1.2 linux/include/asm-i386/ptrace.h
Next file: linux/include/asm-i386/user.h
Previous file: linux/include/asm-i386/processor.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sat Oct 5 14:34:11 1996
- Orig file:
v2.1.1/linux/include/asm-i386/ptrace.h
- Orig date:
Wed Sep 13 10:08:39 1995
diff -u --recursive --new-file v2.1.1/linux/include/asm-i386/ptrace.h linux/include/asm-i386/ptrace.h
@@ -31,20 +31,18 @@
long edi;
long ebp;
long eax;
- unsigned short ds, __dsu;
- unsigned short es, __esu;
- unsigned short fs, __fsu;
- unsigned short gs, __gsu;
+ int xds;
+ int xes;
long orig_eax;
long eip;
- unsigned short cs, __csu;
+ int xcs;
long eflags;
long esp;
- unsigned short ss, __ssu;
+ int xss;
};
#ifdef __KERNEL__
-#define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->cs))
+#define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->xcs))
#define instruction_pointer(regs) ((regs)->eip)
extern void show_regs(struct pt_regs *);
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov