/*
* PROJECT: ReactOS HAL
* LICENSE: BSD - See COPYING.ARM in the top level directory
- * FILE: hal/halx86/generic/acpi/busemul.c
+ * FILE: hal/halx86/acpi/busemul.c
* PURPOSE: ACPI HAL Bus Handler Emulation Code
* PROGRAMMERS: ReactOS Portable Systems Group
*/
/* PRIVATE FUNCTIONS **********************************************************/
+INIT_FUNCTION
VOID
NTAPI
HalpRegisterKdSupportFunctions(VOID)
/* Register memory functions */
#ifndef _MINIHAL_
+#if (NTDDI_VERSION >= NTDDI_VISTA)
+ KdMapPhysicalMemory64 = HalpMapPhysicalMemory64Vista;
+ KdUnmapVirtualAddress = HalpUnmapVirtualAddressVista;
+#else
KdMapPhysicalMemory64 = HalpMapPhysicalMemory64;
KdUnmapVirtualAddress = HalpUnmapVirtualAddress;
+#endif
#endif
/* Register ACPI stub */
if (!Context) return FALSE;
/* If we have data in the context, then this shouldn't be a new lookup */
- if ((*Context) && (NextBus == TRUE)) return FALSE;
+ if ((*Context != 0) && (NextBus != FALSE)) return FALSE;
/* Return bus data */
TranslatedAddress->QuadPart = BusAddress.QuadPart;
/* Call PCI function */
return HalpGetPCIData(&BusHandler,
&BusHandler,
- *(PPCI_SLOT_NUMBER)&SlotNumber,
+ SlotNumber,
Buffer,
Offset,
Length);
/* Call PCI function */
return HalpSetPCIData(&BusHandler,
&BusHandler,
- *(PPCI_SLOT_NUMBER)&SlotNumber,
+ SlotNumber,
Buffer,
Offset,
Length);