mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix HALMP build
svn path=/trunk/; revision=16322
This commit is contained in:
parent
a6114ec37f
commit
ba4e11025f
1 changed files with 4 additions and 4 deletions
|
@ -905,11 +905,11 @@ APICCalibrateTimer(ULONG CPU)
|
|||
VOID
|
||||
SetInterruptGate(ULONG index, ULONG address)
|
||||
{
|
||||
IDT_DESCRIPTOR *idt;
|
||||
KDESCRIPTOR *idt;
|
||||
|
||||
idt = (IDT_DESCRIPTOR*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(IDT_DESCRIPTOR));
|
||||
idt->a = (((ULONG)address)&0xffff) + (KERNEL_CS << 16);
|
||||
idt->b = 0x8e00 + (((ULONG)address)&0xffff0000);
|
||||
idt = (KDESCRIPTOR*)((ULONG)KeGetCurrentKPCR()->IDT + index * sizeof(KDESCRIPTOR));
|
||||
idt->Limit = ((address)&0xffff) + (KERNEL_CS << 16);
|
||||
idt->Base = 0x8e00 + ((address)&0xffff0000);
|
||||
}
|
||||
|
||||
VOID HaliInitBSP(VOID)
|
||||
|
|
Loading…
Reference in a new issue