diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2021-10-08 15:46:17 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-08 15:39:42 +0000 |
commit | 7b2022d39e99b825a16c8805974c3366d6c7dd3b (patch) | |
tree | 552a800b98398ea8eecb05844fb54a204da84dfe /BaseTools/Source/Python/Ecc/MetaFileWorkspace | |
parent | 74addfeab6d7f66800e430be078d6560c4edda53 (diff) | |
download | edk2-7b2022d39e99b825a16c8805974c3366d6c7dd3b.tar.gz edk2-7b2022d39e99b825a16c8805974c3366d6c7dd3b.tar.bz2 edk2-7b2022d39e99b825a16c8805974c3366d6c7dd3b.zip |
DynamicTablesPkg: Set EndTag's Checksum if RdList is modified
ACPI 6.4, s6.4.2.9 "End Tag":
"This checksum is generated such that adding it to the sum of all the data
bytes will produce a zero sum."
"If the checksum field is zero, the resource data is treated as if the
checksum operation succeeded. Configuration proceeds normally."
To avoid re-computing checksums, if a new resource data elements is
added/removed/modified in a list of resource data elements, the AmlLib
resets the checksum to 0.
This patch also refactors the AmlAppendRdNode() function by getting the
last Resource Data node directly instead of iterating over all the
elements of the list of Resource Data node.
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/MetaFileWorkspace')
0 files changed, 0 insertions, 0 deletions