From 6f63730de8b138c338e10caf41933e3fee74e0c6 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 13 Jan 2003 01:11:12 +0000 Subject: [PATCH] Fixed low memory mapping. svn path=/trunk/; revision=3995 --- reactos/drivers/bus/acpi/ospm/osl.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/reactos/drivers/bus/acpi/ospm/osl.c b/reactos/drivers/bus/acpi/ospm/osl.c index 8e478b1c014..bae1851a230 100644 --- a/reactos/drivers/bus/acpi/ospm/osl.c +++ b/reactos/drivers/bus/acpi/ospm/osl.c @@ -148,15 +148,11 @@ acpi_os_map_memory(ACPI_PHYSICAL_ADDRESS phys, u32 size, void **virt) } } - if ((ULONG)phys >= 0x100000) { - Address.QuadPart = (ULONG)phys; - *virt = MmMapIoSpace(Address, size, FALSE); - if (!*virt) - return AE_ERROR; - } else { - *virt = (PVOID)((ULONG)phys); - } - + Address.QuadPart = (ULONG)phys; + *virt = MmMapIoSpace(Address, size, FALSE); + if (!*virt) + return AE_ERROR; + return AE_OK; } @@ -171,9 +167,7 @@ acpi_os_unmap_memory(void *virt, u32 size) IVTVirtualAddress = NULL; return; } - /* FIXME: Causes "Memory area is NULL" bugcheck in marea.c */ - //if ((ULONG)virt >= 0x100000) - //MmUnmapIoSpace(virt, size); + MmUnmapIoSpace(virt, size); } ACPI_STATUS