mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix idt descriptor code properly
svn path=/trunk/; revision=16323
This commit is contained in:
parent
ba4e11025f
commit
70c62c571a
1 changed files with 2 additions and 2 deletions
|
@ -908,8 +908,8 @@ SetInterruptGate(ULONG index, ULONG address)
|
|||
KDESCRIPTOR *idt;
|
||||
|
||||
idt = (KDESCRIPTOR*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(KDESCRIPTOR));
|
||||
idt->Limit = ((address)&0xffff) + (KERNEL_CS << 16);
|
||||
idt->Base = 0x8e00 + ((address)&0xffff0000);
|
||||
idt->Limit = address & 0xffff;
|
||||
idt->Base = 0x8e00 + (address &0xffff0000);
|
||||
}
|
||||
|
||||
VOID HaliInitBSP(VOID)
|
||||
|
|
Loading…
Reference in a new issue