summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_resource.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-08-31 22:59:04 +0000
committermsmith <msmith@FreeBSD.org>2001-08-31 22:59:04 +0000
commit5248c9673162a90f6b487fc922bee9b407e9a4c5 (patch)
treed3494a7b266bb016d193eb9e1849c21646851455 /sys/dev/acpica/acpi_resource.c
parent600b1b81613731c48ad2d43328ca74baa5f1f201 (diff)
downloadFreeBSD-src-5248c9673162a90f6b487fc922bee9b407e9a4c5.zip
FreeBSD-src-5248c9673162a90f6b487fc922bee9b407e9a4c5.tar.gz
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.
Diffstat (limited to 'sys/dev/acpica/acpi_resource.c')
-rw-r--r--sys/dev/acpica/acpi_resource.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c
index e3edfc2..40c3f59 100644
--- a/sys/dev/acpica/acpi_resource.c
+++ b/sys/dev/acpica/acpi_resource.c
@@ -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);
OpenPOWER on IntegriCloud