diff options
author | Robert Moore <Robert.Moore@intel.com> | 2015-08-12 10:08:11 -0700 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2015-08-12 10:08:11 -0700 |
commit | 74094ca9f51e2652a9b5f01722d8640a653cc75a (patch) | |
tree | ac77f947eacdc366b969323e533048ef5052820d /source/components/events/evregion.c | |
parent | 5474f69434f7dd7f65fcb398b42f3276a3213522 (diff) | |
download | acpica-74094ca9f51e2652a9b5f01722d8640a653cc75a.tar.gz |
Add additional debug info/statements.
For _REG methods and module-level code blocks.
For acpiexec, add deletion of module-level blocks in case
of an early abort.
Diffstat (limited to 'source/components/events/evregion.c')
-rw-r--r-- | source/components/events/evregion.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/source/components/events/evregion.c b/source/components/events/evregion.c index 25a790017..9c08a6b63 100644 --- a/source/components/events/evregion.c +++ b/source/components/events/evregion.c @@ -732,10 +732,17 @@ AcpiEvExecuteRegMethods ( ACPI_ADR_SPACE_TYPE SpaceId) { ACPI_STATUS Status; + ACPI_REG_WALK_INFO Info; ACPI_FUNCTION_TRACE (EvExecuteRegMethods); + Info.SpaceId = SpaceId; + Info.RegRunCount = 0; + + ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, + " Running _REG methods for SpaceId %s\n", + AcpiUtGetRegionName (Info.SpaceId))); /* * Run all _REG methods for all Operation Regions for this space ID. This @@ -744,8 +751,7 @@ AcpiEvExecuteRegMethods ( * regions of this Space ID before we can run any _REG methods) */ Status = AcpiNsWalkNamespace (ACPI_TYPE_ANY, Node, ACPI_UINT32_MAX, - ACPI_NS_WALK_UNLOCK, AcpiEvRegRun, NULL, - &SpaceId, NULL); + ACPI_NS_WALK_UNLOCK, AcpiEvRegRun, NULL, &Info, NULL); /* Special case for EC: handle "orphan" _REG methods with no region */ @@ -754,6 +760,10 @@ AcpiEvExecuteRegMethods ( AcpiEvOrphanEcRegMethod (Node); } + ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, + " Executed %u _REG methods for SpaceId %s\n", + Info.RegRunCount, AcpiUtGetRegionName (Info.SpaceId))); + return_ACPI_STATUS (Status); } @@ -777,11 +787,11 @@ AcpiEvRegRun ( { ACPI_OPERAND_OBJECT *ObjDesc; ACPI_NAMESPACE_NODE *Node; - ACPI_ADR_SPACE_TYPE SpaceId; ACPI_STATUS Status; + ACPI_REG_WALK_INFO *Info; - SpaceId = *ACPI_CAST_PTR (ACPI_ADR_SPACE_TYPE, Context); + Info = ACPI_CAST_PTR (ACPI_REG_WALK_INFO, Context); /* Convert and validate the device handle */ @@ -813,13 +823,14 @@ AcpiEvRegRun ( /* Object is a Region */ - if (ObjDesc->Region.SpaceId != SpaceId) + if (ObjDesc->Region.SpaceId != Info->SpaceId) { /* This region is for a different address space, just ignore it */ return (AE_OK); } + Info->RegRunCount++; Status = AcpiEvExecuteRegMethod (ObjDesc, ACPI_REG_CONNECT); return (Status); } |