mirror of
https://github.com/acpica/acpica/
synced 2024-12-26 20:29:48 +03:00
Enable Scope change to root during module-level code execution.
Allows constructs like this: If (XXXX) Scope (\) ...
This commit is contained in:
parent
e4e99ffc4c
commit
2ce2407975
@ -313,6 +313,20 @@ AcpiDsLoad1BeginOp (
|
||||
WalkState->ScopeInfo->Common.Value = ACPI_TYPE_ANY;
|
||||
break;
|
||||
|
||||
case ACPI_TYPE_METHOD:
|
||||
|
||||
/*
|
||||
* Allow scope change to root during execution of module-level
|
||||
* code. Root is typed METHOD during this time.
|
||||
*/
|
||||
if ((Node == AcpiGbl_RootNode) &&
|
||||
(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
|
||||
default:
|
||||
|
||||
/* All other types are an error */
|
||||
|
@ -315,6 +315,20 @@ AcpiDsLoad2BeginOp (
|
||||
WalkState->ScopeInfo->Common.Value = ACPI_TYPE_ANY;
|
||||
break;
|
||||
|
||||
case ACPI_TYPE_METHOD:
|
||||
|
||||
/*
|
||||
* Allow scope change to root during execution of module-level
|
||||
* code. Root is typed METHOD during this time.
|
||||
*/
|
||||
if ((Node == AcpiGbl_RootNode) &&
|
||||
(WalkState->ParseFlags & ACPI_PARSE_MODULE_LEVEL))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/*lint -fallthrough */
|
||||
|
||||
default:
|
||||
|
||||
/* All other types are an error */
|
||||
|
Loading…
Reference in New Issue
Block a user