mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:05:44 +00:00
Fix IDT limit.
svn path=/trunk/; revision=42566
This commit is contained in:
parent
46ad3be153
commit
5f73e1c2bc
2 changed files with 20 additions and 20 deletions
|
@ -220,5 +220,5 @@ EXTERN(i386idt)
|
||||||
|
|
||||||
/* IDT table pointer */
|
/* IDT table pointer */
|
||||||
EXTERN(i386idtptr)
|
EXTERN(i386idtptr)
|
||||||
.word (i386idtptr-i386idt) /* Limit */
|
.word (i386idtptr - i386idt - 1) /* Limit */
|
||||||
.long i386idt /* Base Address */
|
.long i386idt /* Base Address */
|
||||||
|
|
|
@ -912,7 +912,7 @@ WinLdrSetProcessorContext(PVOID GdtIdt, IN ULONG Pcr, IN ULONG Tss)
|
||||||
//
|
//
|
||||||
|
|
||||||
// Copy the old IDT
|
// Copy the old IDT
|
||||||
RtlCopyMemory(pIdt, (PVOID)OldIdt.Base, OldIdt.Limit);
|
RtlCopyMemory(pIdt, (PVOID)OldIdt.Base, OldIdt.Limit + 1);
|
||||||
|
|
||||||
// Mask interrupts
|
// Mask interrupts
|
||||||
//asm("cli\n"); // they are already masked before enabling paged mode
|
//asm("cli\n"); // they are already masked before enabling paged mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue