ACPI: Use AcpiGbl_OverrideDefaultRegionHandlers and do the init ourselves.
May help with the recent boot failures, according to a post on the ACPICA-dev mailing list.
This commit is contained in:
@@ -185,6 +185,7 @@ acpi_std_ops(int32 op,...)
|
|||||||
void *settings;
|
void *settings;
|
||||||
bool acpiDisabled = false;
|
bool acpiDisabled = false;
|
||||||
AcpiGbl_CopyDsdtLocally = true;
|
AcpiGbl_CopyDsdtLocally = true;
|
||||||
|
AcpiGbl_OverrideDefaultRegionHandlers = true;
|
||||||
|
|
||||||
settings = load_driver_settings("kernel");
|
settings = load_driver_settings("kernel");
|
||||||
if (settings != NULL) {
|
if (settings != NULL) {
|
||||||
@@ -223,6 +224,25 @@ acpi_std_ops(int32 op,...)
|
|||||||
"AcpiInitializeSubsystem failed"))
|
"AcpiInitializeSubsystem failed"))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
/* Install the default address space handlers. */
|
||||||
|
if (checkAndLogFailure(AcpiInstallAddressSpaceHandler(
|
||||||
|
ACPI_ROOT_OBJECT, ACPI_ADR_SPACE_SYSTEM_MEMORY,
|
||||||
|
ACPI_DEFAULT_HANDLER, NULL, NULL),
|
||||||
|
"Could not initialise SystemMemory handler:"))
|
||||||
|
goto err;
|
||||||
|
|
||||||
|
if (checkAndLogFailure(AcpiInstallAddressSpaceHandler(
|
||||||
|
ACPI_ROOT_OBJECT, ACPI_ADR_SPACE_SYSTEM_IO,
|
||||||
|
ACPI_DEFAULT_HANDLER, NULL, NULL),
|
||||||
|
"Could not initialise SystemIO handler:"))
|
||||||
|
goto err;
|
||||||
|
|
||||||
|
if (checkAndLogFailure(AcpiInstallAddressSpaceHandler(
|
||||||
|
ACPI_ROOT_OBJECT, ACPI_ADR_SPACE_PCI_CONFIG,
|
||||||
|
ACPI_DEFAULT_HANDLER, NULL, NULL),
|
||||||
|
"Could not initialise PciConfig handler:"))
|
||||||
|
goto err;
|
||||||
|
|
||||||
if (checkAndLogFailure(AcpiInitializeTables(NULL, 0, TRUE),
|
if (checkAndLogFailure(AcpiInitializeTables(NULL, 0, TRUE),
|
||||||
"AcpiInitializeTables failed"))
|
"AcpiInitializeTables failed"))
|
||||||
goto err;
|
goto err;
|
||||||
|
|||||||
Reference in New Issue
Block a user