mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
AcpiExec: Add support to test attach/delete root node objects.
This change attaches two objects to the root node to test both the attach and the actual object deletion upon ACPICA termination.
This commit is contained in:
parent
761f0b5627
commit
6af53b0303
@ -1121,11 +1121,21 @@ AeInstallEarlyHandlers (
|
||||
Status = AcpiDetachData (Handle, AeAttachedDataHandler);
|
||||
AE_CHECK_OK (AcpiDetachData, Status);
|
||||
|
||||
Status = AcpiAttachData (Handle, AeAttachedDataHandler, Handle);
|
||||
/* Test attach data at the root object */
|
||||
|
||||
Status = AcpiAttachData (ACPI_ROOT_OBJECT, AeAttachedDataHandler,
|
||||
AcpiGbl_RootNode);
|
||||
AE_CHECK_OK (AcpiAttachData, Status);
|
||||
|
||||
Status = AcpiAttachData (ACPI_ROOT_OBJECT, AeAttachedDataHandler2,
|
||||
AcpiGbl_RootNode);
|
||||
AE_CHECK_OK (AcpiAttachData, Status);
|
||||
|
||||
/* Test support for multiple attaches */
|
||||
|
||||
Status = AcpiAttachData (Handle, AeAttachedDataHandler, Handle);
|
||||
AE_CHECK_OK (AcpiAttachData, Status);
|
||||
|
||||
Status = AcpiAttachData (Handle, AeAttachedDataHandler2, Handle);
|
||||
AE_CHECK_OK (AcpiAttachData, Status);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user