|
@@ -98,37 +98,6 @@ void acpi_ex_enter_interpreter(void)
|
|
return_VOID;
|
|
return_VOID;
|
|
}
|
|
}
|
|
|
|
|
|
-/*******************************************************************************
|
|
|
|
- *
|
|
|
|
- * FUNCTION: acpi_ex_reacquire_interpreter
|
|
|
|
- *
|
|
|
|
- * PARAMETERS: None
|
|
|
|
- *
|
|
|
|
- * RETURN: None
|
|
|
|
- *
|
|
|
|
- * DESCRIPTION: Reacquire the interpreter execution region from within the
|
|
|
|
- * interpreter code. Failure to enter the interpreter region is a
|
|
|
|
- * fatal system error. Used in conjunction with
|
|
|
|
- * relinquish_interpreter
|
|
|
|
- *
|
|
|
|
- ******************************************************************************/
|
|
|
|
-
|
|
|
|
-void acpi_ex_reacquire_interpreter(void)
|
|
|
|
-{
|
|
|
|
- ACPI_FUNCTION_TRACE(ex_reacquire_interpreter);
|
|
|
|
-
|
|
|
|
- /*
|
|
|
|
- * If the global serialized flag is set, do not release the interpreter,
|
|
|
|
- * since it was not actually released by acpi_ex_relinquish_interpreter.
|
|
|
|
- * This forces the interpreter to be single threaded.
|
|
|
|
- */
|
|
|
|
- if (!acpi_gbl_all_methods_serialized) {
|
|
|
|
- acpi_ex_enter_interpreter();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return_VOID;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*******************************************************************************
|
|
/*******************************************************************************
|
|
*
|
|
*
|
|
* FUNCTION: acpi_ex_exit_interpreter
|
|
* FUNCTION: acpi_ex_exit_interpreter
|
|
@@ -139,7 +108,16 @@ void acpi_ex_reacquire_interpreter(void)
|
|
*
|
|
*
|
|
* DESCRIPTION: Exit the interpreter execution region. This is the top level
|
|
* DESCRIPTION: Exit the interpreter execution region. This is the top level
|
|
* routine used to exit the interpreter when all processing has
|
|
* routine used to exit the interpreter when all processing has
|
|
- * been completed.
|
|
|
|
|
|
+ * been completed, or when the method blocks.
|
|
|
|
+ *
|
|
|
|
+ * Cases where the interpreter is unlocked internally:
|
|
|
|
+ * 1) Method will be blocked on a Sleep() AML opcode
|
|
|
|
+ * 2) Method will be blocked on an Acquire() AML opcode
|
|
|
|
+ * 3) Method will be blocked on a Wait() AML opcode
|
|
|
|
+ * 4) Method will be blocked to acquire the global lock
|
|
|
|
+ * 5) Method will be blocked waiting to execute a serialized control
|
|
|
|
+ * method that is currently executing
|
|
|
|
+ * 6) About to invoke a user-installed opregion handler
|
|
*
|
|
*
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
|
|
|
@@ -158,44 +136,6 @@ void acpi_ex_exit_interpreter(void)
|
|
return_VOID;
|
|
return_VOID;
|
|
}
|
|
}
|
|
|
|
|
|
-/*******************************************************************************
|
|
|
|
- *
|
|
|
|
- * FUNCTION: acpi_ex_relinquish_interpreter
|
|
|
|
- *
|
|
|
|
- * PARAMETERS: None
|
|
|
|
- *
|
|
|
|
- * RETURN: None
|
|
|
|
- *
|
|
|
|
- * DESCRIPTION: Exit the interpreter execution region, from within the
|
|
|
|
- * interpreter - before attempting an operation that will possibly
|
|
|
|
- * block the running thread.
|
|
|
|
- *
|
|
|
|
- * Cases where the interpreter is unlocked internally
|
|
|
|
- * 1) Method to be blocked on a Sleep() AML opcode
|
|
|
|
- * 2) Method to be blocked on an Acquire() AML opcode
|
|
|
|
- * 3) Method to be blocked on a Wait() AML opcode
|
|
|
|
- * 4) Method to be blocked to acquire the global lock
|
|
|
|
- * 5) Method to be blocked waiting to execute a serialized control method
|
|
|
|
- * that is currently executing
|
|
|
|
- * 6) About to invoke a user-installed opregion handler
|
|
|
|
- *
|
|
|
|
- ******************************************************************************/
|
|
|
|
-
|
|
|
|
-void acpi_ex_relinquish_interpreter(void)
|
|
|
|
-{
|
|
|
|
- ACPI_FUNCTION_TRACE(ex_relinquish_interpreter);
|
|
|
|
-
|
|
|
|
- /*
|
|
|
|
- * If the global serialized flag is set, do not release the interpreter.
|
|
|
|
- * This forces the interpreter to be single threaded.
|
|
|
|
- */
|
|
|
|
- if (!acpi_gbl_all_methods_serialized) {
|
|
|
|
- acpi_ex_exit_interpreter();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return_VOID;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*******************************************************************************
|
|
/*******************************************************************************
|
|
*
|
|
*
|
|
* FUNCTION: acpi_ex_truncate_for32bit_table
|
|
* FUNCTION: acpi_ex_truncate_for32bit_table
|