mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Use the correct structure in SetInterruptGate.
svn path=/trunk/; revision=16327
This commit is contained in:
parent
06bd6d6ba8
commit
f08cae7194
1 changed files with 6 additions and 5 deletions
|
@ -905,12 +905,13 @@ APICCalibrateTimer(ULONG CPU)
|
|||
VOID
|
||||
SetInterruptGate(ULONG index, ULONG address)
|
||||
{
|
||||
KDESCRIPTOR *idt;
|
||||
KIDTENTRY *idt;
|
||||
|
||||
idt = (KDESCRIPTOR*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(KDESCRIPTOR));
|
||||
idt->Pad = address & 0xffff;
|
||||
idt->Limit = KERNEL_CS;
|
||||
idt->Base = 0x8e00 + (address & 0xffff0000);
|
||||
idt = (KIDTENTRY*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(KIDTENTRY));
|
||||
idt->Offset = address & 0xffff;
|
||||
idt->Selector = KERNEL_CS;
|
||||
idt->Access = 0x8e00;
|
||||
idt->ExtendedOffset = address >> 16;
|
||||
}
|
||||
|
||||
VOID HaliInitBSP(VOID)
|
||||
|
|
Loading…
Reference in a new issue