update for HEAD-2003050101
[reactos.git] / hal / halx86 / sysbus.c
index 5b1b95f..53c021d 100644 (file)
 
 /* INCLUDES *****************************************************************/
 
+#include <roscfg.h>
 #include <ddk/ntddk.h>
 #include <bus.h>
+#ifdef MP
+#include <mps.h>
+#endif
 
 
 /* FUNCTIONS ****************************************************************/
@@ -25,9 +29,15 @@ HalpGetSystemInterruptVector(PVOID BusHandler,
                             PKIRQL Irql,
                             PKAFFINITY Affinity)
 {
-   *Irql = PROFILE_LEVEL - BusInterruptVector;
-   *Affinity = 0xFFFFFFFF;
-   return BusInterruptVector;
+#ifdef MP
+  *Irql = PROFILE_LEVEL - BusInterruptVector;
+  *Affinity = 0xFFFFFFFF;
+  return IRQ2VECTOR(BusInterruptVector);
+#else
+  *Irql = PROFILE_LEVEL - BusInterruptVector;
+  *Affinity = 0xFFFFFFFF;
+  return BusInterruptVector;
+#endif
 }