Author: gedmurphy
Date: Thu Apr 17 14:08:26 2008
New Revision: 33007
URL:
http://svn.reactos.org/svn/reactos?rev=33007&view=rev
Log:
- Fix IDT and GDT limits to values advised by Alex.
- Problem noticed by Henning Schild
Modified:
trunk/reactos/ntoskrnl/ke/i386/cpu.c
trunk/reactos/ntoskrnl/ke/i386/trap.s
Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Thu Apr 17 14:08:26 2008
@@ -47,7 +47,7 @@
};
/* GDT Descriptor */
-KDESCRIPTOR KiGdtDescriptor = {0, sizeof(KiBootGdt), (ULONG)KiBootGdt};
+KDESCRIPTOR KiGdtDescriptor = {0, sizeof(KiBootGdt) - 1, (ULONG)KiBootGdt};
/* CPU Features and Flags */
ULONG KeI386CpuType;
Modified: trunk/reactos/ntoskrnl/ke/i386/trap.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/trap.s?re…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/trap.s [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/trap.s [iso-8859-1] Thu Apr 17 14:08:26 2008
@@ -81,7 +81,7 @@
.globl _KiIdtDescriptor
_KiIdtDescriptor:
.short 0
- .short 0x800
+ .short 0x7FF
.long _KiIdt
.globl _KiUnexpectedEntrySize