mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Fixed low memory mapping.
svn path=/trunk/; revision=3995
This commit is contained in:
parent
2cc8694271
commit
6f63730de8
1 changed files with 6 additions and 12 deletions
|
@ -148,15 +148,11 @@ acpi_os_map_memory(ACPI_PHYSICAL_ADDRESS phys, u32 size, void **virt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ULONG)phys >= 0x100000) {
|
Address.QuadPart = (ULONG)phys;
|
||||||
Address.QuadPart = (ULONG)phys;
|
*virt = MmMapIoSpace(Address, size, FALSE);
|
||||||
*virt = MmMapIoSpace(Address, size, FALSE);
|
if (!*virt)
|
||||||
if (!*virt)
|
return AE_ERROR;
|
||||||
return AE_ERROR;
|
|
||||||
} else {
|
|
||||||
*virt = (PVOID)((ULONG)phys);
|
|
||||||
}
|
|
||||||
|
|
||||||
return AE_OK;
|
return AE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,9 +167,7 @@ acpi_os_unmap_memory(void *virt, u32 size)
|
||||||
IVTVirtualAddress = NULL;
|
IVTVirtualAddress = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* FIXME: Causes "Memory area is NULL" bugcheck in marea.c */
|
MmUnmapIoSpace(virt, size);
|
||||||
//if ((ULONG)virt >= 0x100000)
|
|
||||||
//MmUnmapIoSpace(virt, size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ACPI_STATUS
|
ACPI_STATUS
|
||||||
|
|
Loading…
Reference in a new issue