28 {
"Data Read-Only, accessed" },
29 {
"Data Read/Write" },
30 {
"Data Read/Write, accessed" },
31 {
"Data Read-Only, expand-down" },
32 {
"Data Read-Only, expand-down, accessed" },
33 {
"Data Read/Write, expand-down" },
34 {
"Data Read/Write, expand-down, accessed" },
35 {
"Code Execute-Only" },
36 {
"Code Execute-Only, accessed" },
37 {
"Code Execute/Read" },
38 {
"Code Execute/Read, accessed" },
39 {
"Code Execute-Only, conforming" },
40 {
"Code Execute-Only, conforming, accessed" },
41 {
"Code Execute/Read, conforming" },
42 {
"Code Execute/Read, conforming, accessed" },
67 LogFullAscii(
"DumpGDT: base = %016lx Limit=%04x GdEntrySize=%x\r\n",
73 for (i = 0; i < (GdtLimit/
sizeof(
gdt_entry)); i++, GdtEntry++)
80 LogFullAscii(
"%04d : base=%08x limit=%08x System=%02d DPL=%02d Present=%02d type=(%03d)%a\r\n",
88 &GdtTypeText[GdtEntry->
s.
Type]);
110 return &IdtEntry[IdtVectorNum];
116 #define IDT_GET_BASE(IdtE) (UINT_ARCH)(IdtE->OffsetLow | (IdtE->OffsetHigh << 16) | ((UINT_ARCH)IdtE->HighOffset64 << 32))
118 #define IDT_GET_BASE(IdtE) (UINT_ARCH)(IdtE->OffsetLow | (IdtE->OffsetHigh << 16))
145 *OutOldIntAddr = OldBase;
148 LogFullAscii(
"%a: Interrupt: %d OldBase=%016lx NewBase=%016lx\r\n",
159 IdtEntry->HighOffset64 = (
ULONG)((
ULONG64)NewIntHandlerAddr >> 32);
205 LogFullAscii(
"%a: base = %016lx Limit=%04x GdEntrySize=%x\r\n",
212 for (i = 0; i < (IdtLimit/
sizeof(
idt_entry)); i++, IdtEntry++)
217 LogFullAscii(
"%04d : base=%016lx Selector=%04x DPL=%02d Present=%02d Type=%04x\r\n",