[ACPI] ACPICA 20050902
Fixed a problem with the internal Owner ID allocation and deallocation mechanisms for control method execution and recursive method invocation. This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" messages seen on some systems. Recursive method invocation depth is currently limited to 255. (Alexey Starikovskiy) http://bugzilla.kernel.org/show_bug.cgi?id=4892 Completely eliminated all vestiges of support for the "module-level executable code" until this support is fully implemented and debugged. This should eliminate the NO_RETURN_VALUE exceptions seen during table load on some systems that invoke this support. http://bugzilla.kernel.org/show_bug.cgi?id=5162 Fixed a problem within the resource manager code where the transaction flags for a 64-bit address descriptor were handled incorrectly in the type-specific flag byte. Consolidated duplicate code within the address descriptor resource manager code, reducing overall subsystem code size. Signed-off-by: Robert Moore <Robert.Moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -438,7 +438,6 @@ acpi_ps_next_parse_state(struct acpi_walk_state *walk_state,
|
||||
acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
|
||||
{
|
||||
acpi_status status;
|
||||
acpi_status terminate_status;
|
||||
struct acpi_thread_state *thread;
|
||||
struct acpi_thread_state *prev_walk_list = acpi_gbl_current_walk_list;
|
||||
struct acpi_walk_state *previous_walk_state;
|
||||
@@ -508,6 +507,10 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
|
||||
walk_state->method_node, NULL,
|
||||
status);
|
||||
|
||||
/* Ensure proper cleanup */
|
||||
|
||||
walk_state->parse_flags |= ACPI_PARSE_EXECUTE;
|
||||
|
||||
/* Check for possible multi-thread reentrancy problem */
|
||||
|
||||
if ((status == AE_ALREADY_EXISTS) &&
|
||||
@@ -524,14 +527,6 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
|
||||
}
|
||||
}
|
||||
|
||||
if (walk_state->method_desc) {
|
||||
/* Decrement the thread count on the method parse tree */
|
||||
|
||||
if (walk_state->method_desc->method.thread_count) {
|
||||
walk_state->method_desc->method.thread_count--;
|
||||
}
|
||||
}
|
||||
|
||||
/* We are done with this walk, move on to the parent if any */
|
||||
|
||||
walk_state = acpi_ds_pop_walk_state(thread);
|
||||
@@ -546,13 +541,13 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
|
||||
*/
|
||||
if ((walk_state->parse_flags & ACPI_PARSE_MODE_MASK) ==
|
||||
ACPI_PARSE_EXECUTE) {
|
||||
terminate_status =
|
||||
acpi_ds_terminate_control_method(walk_state);
|
||||
if (ACPI_FAILURE(terminate_status)) {
|
||||
ACPI_REPORT_ERROR(("Could not terminate control method properly\n"));
|
||||
if (walk_state->method_desc) {
|
||||
/* Decrement the thread count on the method parse tree */
|
||||
|
||||
/* Ignore error and continue */
|
||||
walk_state->method_desc->method.thread_count--;
|
||||
}
|
||||
|
||||
acpi_ds_terminate_control_method(walk_state);
|
||||
}
|
||||
|
||||
/* Delete this walk state and all linked control states */
|
||||
|
Reference in New Issue
Block a user