diff options
Diffstat (limited to 'Kernel/i386.h')
-rw-r--r-- | Kernel/i386.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Kernel/i386.h b/Kernel/i386.h index 379fac0d71..c770d45286 100644 --- a/Kernel/i386.h +++ b/Kernel/i386.h @@ -6,6 +6,26 @@ #define PAGE_SIZE 4096 #define PAGE_MASK 0xfffff000 +struct [[gnu::packed]] TSS32 { + word backlink, __blh; + dword esp0; + word ss0, __ss0h; + dword esp1; + word ss1, __ss1h; + dword esp2; + word ss2, __ss2h; + dword cr3, eip, eflags; + dword eax,ecx,edx,ebx,esp,ebp,esi,edi; + word es, __esh; + word cs, __csh; + word ss, __ssh; + word ds, __dsh; + word fs, __fsh; + word gs, __gsh; + word ldt, __ldth; + word trace, iomapbase; +}; + union [[gnu::packed]] Descriptor { struct { word limit_lo; |