kernel/acpi: Stop installing default address space handlers explicitly.
authorSascha Wildner <saw@online.de>
Tue, 1 Jul 2014 04:01:10 +0000 (06:01 +0200)
committerSascha Wildner <saw@online.de>
Tue, 1 Jul 2014 04:01:10 +0000 (06:01 +0200)
Since ACPICA 20040427 this is no longer necessary since it is part of
AcpiEnableSubsystem(). It is not supported and has led to problems.

See http://svnweb.freebsd.org/base?view=revision&revision=212993

sys/dev/acpica/acpi.c

index 81b2f60..389b414 100644 (file)
@@ -503,29 +503,6 @@ acpi_attach(device_t dev)
     /* Handle MCFG table if present. */
     acpi_enable_pcie();
 
-    /* Install the default address space handlers. */
-    status = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT,
-               ACPI_ADR_SPACE_SYSTEM_MEMORY, ACPI_DEFAULT_HANDLER, NULL, NULL);
-    if (ACPI_FAILURE(status)) {
-       device_printf(dev, "Could not initialise SystemMemory handler: %s\n",
-                     AcpiFormatException(status));
-       goto out;
-    }
-    status = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT,
-               ACPI_ADR_SPACE_SYSTEM_IO, ACPI_DEFAULT_HANDLER, NULL, NULL);
-    if (ACPI_FAILURE(status)) {
-       device_printf(dev, "Could not initialise SystemIO handler: %s\n",
-                     AcpiFormatException(status));
-       goto out;
-    }
-    status = AcpiInstallAddressSpaceHandler(ACPI_ROOT_OBJECT,
-               ACPI_ADR_SPACE_PCI_CONFIG, ACPI_DEFAULT_HANDLER, NULL, NULL);
-    if (ACPI_FAILURE(status)) {
-       device_printf(dev, "could not initialise PciConfig handler: %s\n",
-                     AcpiFormatException(status));
-       goto out;
-    }
-
     /*
      * Note that some systems (specifically, those with namespace evaluation
      * issues that require the avoidance of parts of the namespace) must