Added new 'bootcd' target.
[reactos.git] / reactos / include / ddk / i386 / tss.h
1 /*
2 *
3 */
4
5 #ifndef __INCLUDE_DDK_I386_TSS_H
6 #define __INCLUDE_DDK_I386_TSS_H
7
8 #define KTSS_ESP0 (0x4)
9
10 #ifndef __ASM__
11
12 typedef struct _KTSS
13 {
14 USHORT PreviousTask;
15 USHORT Reserved1;
16 ULONG Esp0;
17 USHORT Ss0;
18 USHORT Reserved2;
19 ULONG Esp1;
20 USHORT Ss1;
21 USHORT Reserved3;
22 ULONG Esp2;
23 USHORT Ss2;
24 USHORT Reserved4;
25 ULONG Cr3;
26 ULONG Eip;
27 ULONG Eflags;
28 ULONG Eax;
29 ULONG Ecx;
30 ULONG Edx;
31 ULONG Ebx;
32 ULONG Esp;
33 ULONG Ebp;
34 ULONG Esi;
35 ULONG Edi;
36 USHORT Es;
37 USHORT Reserved5;
38 USHORT Cs;
39 USHORT Reserved6;
40 USHORT Ss;
41 USHORT Reserved7;
42 USHORT Ds;
43 USHORT Reserved8;
44 USHORT Fs;
45 USHORT Reserved9;
46 USHORT Gs;
47 USHORT Reserved10;
48 USHORT Ldt;
49 USHORT Reserved11;
50 USHORT Trap;
51 USHORT IoMapBase;
52 UCHAR IoBitmap[1];
53 } KTSS __attribute__((packed));
54
55 #endif /* not __ASM__ */
56
57 #endif /* __INCLUDE_DDK_I386_TSS_H */