Skip to content

Commit

Permalink
Executer: Add back pointing reference of method operand.
Browse files Browse the repository at this point in the history
This patch adds back pointing reference of the namespace node for a method
operand. The namespace node then can be used in
AcpiDsTerminateControlMethod() to obtain method full path to be used by
tracing facilities. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
  • Loading branch information
Lv Zheng committed Jun 10, 2015
1 parent afb5261 commit 9dcd124
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/components/executer/excreate.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ AcpiExCreateMethod (

ObjDesc->Method.AmlStart = AmlStart;
ObjDesc->Method.AmlLength = AmlLength;
ObjDesc->Method.Node = Operand[0];

/*
* Disassemble the method flags. Split off the ArgCount, Serialized
Expand Down
4 changes: 4 additions & 0 deletions source/components/utilities/utdelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ AcpiUtDeleteInternalObj (
AcpiUtDeleteObjectDesc (Object->Method.Mutex);
Object->Method.Mutex = NULL;
}
if (Object->Method.Node)
{
Object->Method.Node = NULL;
}
break;

case ACPI_TYPE_REGION:
Expand Down
1 change: 1 addition & 0 deletions source/include/acobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ typedef struct acpi_object_method
UINT8 ParamCount;
UINT8 SyncLevel;
union acpi_operand_object *Mutex;
union acpi_operand_object *Node;
UINT8 *AmlStart;
union
{
Expand Down

0 comments on commit 9dcd124

Please sign in to comment.