- Fix IDT and GDT limits to values advised by Alex.
authorGed Murphy <gedmurphy@reactos.org>
Thu, 17 Apr 2008 19:08:26 +0000 (19:08 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Thu, 17 Apr 2008 19:08:26 +0000 (19:08 +0000)
- Problem noticed by Henning Schild

svn path=/trunk/; revision=33007

reactos/ntoskrnl/ke/i386/cpu.c
reactos/ntoskrnl/ke/i386/trap.s

index 6108b3a..d5f9298 100644 (file)
@@ -47,7 +47,7 @@ KGDTENTRY KiBootGdt[256] =
 };
 
 /* GDT Descriptor */
-KDESCRIPTOR KiGdtDescriptor = {0, sizeof(KiBootGdt), (ULONG)KiBootGdt};
+KDESCRIPTOR KiGdtDescriptor = {0, sizeof(KiBootGdt) - 1, (ULONG)KiBootGdt};
 
 /* CPU Features and Flags */
 ULONG KeI386CpuType;
index 45f2874..379d324 100644 (file)
@@ -81,7 +81,7 @@ GENERATE_IDT_STUBS                  /* INT 30-FF: UNEXPECTED INTERRUPTS     */
 .globl _KiIdtDescriptor
 _KiIdtDescriptor:
     .short 0
-    .short 0x800
+    .short 0x7FF
     .long _KiIdt
 
 .globl _KiUnexpectedEntrySize