Don't claim memory resources owned by a PNP0C01 device ("system memory")

as some systems claim the entire physical address space is owned by it.
This commit is contained in:
Mike Smith 2001-08-31 22:59:04 +00:00
parent 9f63e1d07a
commit 2a4684aa19

View File

@ -511,6 +511,11 @@ acpi_res_set_end_dependant(device_t dev, void *context)
* This code "owns" system resource objects that aren't
* otherwise useful to devices, and which shouldn't be
* considered "free".
*
* Note that some systems claim *all* of the physical address space
* with a PNP0C01 device, so we cannot correctly "own" system memory
* here (must be done in the SMAP handler on x86 systems, for
* example).
*/
static int acpi_sysresource_probe(device_t dev);
@ -538,9 +543,7 @@ acpi_sysresource_probe(device_t dev)
{
if (acpi_disabled("sysresource"))
return(ENXIO);
if (acpi_MatchHid(dev, "PNP0C01")) {
device_set_desc(dev, "system memory");
} else if (acpi_MatchHid(dev, "PNP0C02")) {
if (acpi_MatchHid(dev, "PNP0C02")) {
device_set_desc(dev, "system resource");
} else {
return(ENXIO);