1 #ifndef_LINUX_VM86_H 2 #define_LINUX_VM86_H 3
4 #defineVM_MASK 0x00020000
5
6 /* 7 * This is the stack-layout when we have done a "SAVE_ALL" from vm86 8 * mode - the main change is that the old segment descriptors aren't 9 * useful any more and are forced to be zero by the kernel (and the 10 * hardware when a trap occurs), and the real segment descriptors are 11 * at the end of the structure. Look at ptrace.h to see the "normal" 12 * setup. 13 */ 14
15 structvm86_regs{ 16 /* 17 * normal regs, with special meaning for the segment descriptors.. 18 */ 19 longebx;
20 longecx;
21 longedx;
22 longesi;
23 longedi;
24 longebp;
25 longeax;
26 long__null_ds;
27 long__null_es;
28 long__null_fs;
29 long__null_gs;
30 longorig_eax;
31 longeip;
32 longcs;
33 longeflags;
34 longesp;
35 longss;
36 /* 37 * these are specific to v86 mode: 38 */ 39 longes;
40 longds;
41 longfs;
42 longgs;
43 };
44
45 structvm86_struct{ 46 structvm86_regsregs;
47 unsignedlongflags;
48 unsignedlongscreen_bitmap;
49 };
50
51 /* 52 * flags masks 53 */ 54 #defineVM86_SCREEN_BITMAP 1
55
56 #endif