From 70c62c571a11f29df130de5791f65b5c5cebf16c Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Wed, 29 Jun 2005 17:36:05 +0000 Subject: [PATCH] Fix idt descriptor code properly svn path=/trunk/; revision=16323 --- reactos/hal/halx86/mp/apic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/hal/halx86/mp/apic.c b/reactos/hal/halx86/mp/apic.c index bb9731bccf4..5b1690e6a71 100644 --- a/reactos/hal/halx86/mp/apic.c +++ b/reactos/hal/halx86/mp/apic.c @@ -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)