|
@@ -262,23 +262,6 @@ acpi_status __init acpi_initialize_objects(u32 flags)
|
|
|
|
|
|
ACPI_FUNCTION_TRACE(acpi_initialize_objects);
|
|
ACPI_FUNCTION_TRACE(acpi_initialize_objects);
|
|
|
|
|
|
- /*
|
|
|
|
- * Run all _REG methods
|
|
|
|
- *
|
|
|
|
- * Note: Any objects accessed by the _REG methods will be automatically
|
|
|
|
- * initialized, even if they contain executable AML (see the call to
|
|
|
|
- * acpi_ns_initialize_objects below).
|
|
|
|
- */
|
|
|
|
- acpi_gbl_reg_methods_enabled = TRUE;
|
|
|
|
- if (!(flags & ACPI_NO_ADDRESS_SPACE_INIT)) {
|
|
|
|
- ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
|
|
|
|
- "[Init] Executing _REG OpRegion methods\n"));
|
|
|
|
-
|
|
|
|
- status = acpi_ev_initialize_op_regions();
|
|
|
|
- if (ACPI_FAILURE(status)) {
|
|
|
|
- return_ACPI_STATUS(status);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
#ifdef ACPI_EXEC_APP
|
|
#ifdef ACPI_EXEC_APP
|
|
/*
|
|
/*
|
|
* This call implements the "initialization file" option for acpi_exec.
|
|
* This call implements the "initialization file" option for acpi_exec.
|
|
@@ -318,6 +301,24 @@ acpi_status __init acpi_initialize_objects(u32 flags)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Run all _REG methods
|
|
|
|
+ *
|
|
|
|
+ * Note: Any objects accessed by the _REG methods will be automatically
|
|
|
|
+ * initialized, even if they contain executable AML (see the call to
|
|
|
|
+ * acpi_ns_initialize_objects below).
|
|
|
|
+ */
|
|
|
|
+ acpi_gbl_reg_methods_enabled = TRUE;
|
|
|
|
+ if (!(flags & ACPI_NO_ADDRESS_SPACE_INIT)) {
|
|
|
|
+ ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
|
|
|
|
+ "[Init] Executing _REG OpRegion methods\n"));
|
|
|
|
+
|
|
|
|
+ status = acpi_ev_initialize_op_regions();
|
|
|
|
+ if (ACPI_FAILURE(status)) {
|
|
|
|
+ return_ACPI_STATUS(status);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Initialize all device objects in the namespace. This runs the device
|
|
* Initialize all device objects in the namespace. This runs the device
|
|
* _STA and _INI methods.
|
|
* _STA and _INI methods.
|