X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Farch%2Fx86%2Finclude%2Fdesctab.h;fp=KernelLand%2FKernel%2Farch%2Fx86%2Finclude%2Fdesctab.h;h=47a462aa14129ca9adc25a3475793dc77186d92c;hb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;hp=0000000000000000000000000000000000000000;hpb=a2495c6ea4f4cab16b5d339ae511428e92e89e73;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86/include/desctab.h b/KernelLand/Kernel/arch/x86/include/desctab.h new file mode 100644 index 00000000..47a462aa --- /dev/null +++ b/KernelLand/Kernel/arch/x86/include/desctab.h @@ -0,0 +1,25 @@ +/** + */ +#ifndef _DESCTAB_H_ +#define _DESCTAB_H_ + +typedef struct { + Uint16 LimitLow; + Uint16 BaseLow; + Uint8 BaseMid; + Uint8 Access; + struct { + unsigned LimitHi: 4; + unsigned Flags: 4; + } __attribute__ ((packed)); + Uint8 BaseHi; +} __attribute__ ((packed)) tGDT; + +typedef struct { + Uint16 OffsetLo; + Uint16 CS; + Uint16 Flags; + Uint16 OffsetHi; +} __attribute__ ((packed)) tIDT; + +#endif