mirror of
https://github.com/acpica/acpica/
synced 2025-03-21 21:52:53 +03:00
Fix to allow region arguments to reference other scopes.
Allow referenced objects to be in a different scope. Lin Ming.
This commit is contained in:
parent
ccdeddbaf0
commit
f3863d6e5c
@ -496,7 +496,7 @@ AcpiDsGetRegionArguments (
|
||||
|
||||
/* Execute the argument AML */
|
||||
|
||||
Status = AcpiDsExecuteArguments (Node, Node->Parent,
|
||||
Status = AcpiDsExecuteArguments (Node, ExtraDesc->Extra.ScopeNode,
|
||||
ExtraDesc->Extra.AmlLength, ExtraDesc->Extra.AmlStart);
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
@ -426,6 +426,14 @@ AcpiExCreateRegion (
|
||||
RegionObj2 = ObjDesc->Common.NextObject;
|
||||
RegionObj2->Extra.AmlStart = AmlStart;
|
||||
RegionObj2->Extra.AmlLength = AmlLength;
|
||||
if (WalkState->ScopeInfo)
|
||||
{
|
||||
RegionObj2->Extra.ScopeNode = WalkState->ScopeInfo->Scope.Node;
|
||||
}
|
||||
else
|
||||
{
|
||||
RegionObj2->Extra.ScopeNode = Node;
|
||||
}
|
||||
|
||||
/* Init the region from the operands */
|
||||
|
||||
|
@ -535,6 +535,7 @@ typedef struct acpi_object_extra
|
||||
{
|
||||
ACPI_OBJECT_COMMON_HEADER
|
||||
ACPI_NAMESPACE_NODE *Method_REG; /* _REG method for this region (if any) */
|
||||
ACPI_NAMESPACE_NODE *ScopeNode;
|
||||
void *RegionContext; /* Region-specific data */
|
||||
UINT8 *AmlStart;
|
||||
UINT32 AmlLength;
|
||||
|
Loading…
x
Reference in New Issue
Block a user