mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +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
|
VOID
|
||||||
SetInterruptGate(ULONG index, ULONG address)
|
SetInterruptGate(ULONG index, ULONG address)
|
||||||
{
|
{
|
||||||
KDESCRIPTOR *idt;
|
KIDTENTRY *idt;
|
||||||
|
|
||||||
idt = (KDESCRIPTOR*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(KDESCRIPTOR));
|
idt = (KIDTENTRY*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(KIDTENTRY));
|
||||||
idt->Pad = address & 0xffff;
|
idt->Offset = address & 0xffff;
|
||||||
idt->Limit = KERNEL_CS;
|
idt->Selector = KERNEL_CS;
|
||||||
idt->Base = 0x8e00 + (address & 0xffff0000);
|
idt->Access = 0x8e00;
|
||||||
|
idt->ExtendedOffset = address >> 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID HaliInitBSP(VOID)
|
VOID HaliInitBSP(VOID)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue