]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: Add AmlSetRdListCheckSum()
authorPierre Gondois <Pierre.Gondois@arm.com>
Fri, 8 Oct 2021 14:46:16 +0000 (15:46 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 8 Oct 2021 15:39:42 +0000 (15:39 +0000)
commit74addfeab6d7f66800e430be078d6560c4edda53
treec452bb3cfc2673baba64ca1d9c1d4134ce0f4cd8
parent28b2df475fb214d11ee50f5a924cedee671f0ba1
DynamicTablesPkg: Add AmlSetRdListCheckSum()

Lists of Resource Data elements end with an EndTag (most of the time).
This function finds the EndTag (if present) in a list of Resource Data
elements and sets the checksum.

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."

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
DynamicTablesPkg/Library/Common/AmlLib/Utils/AmlUtility.c
DynamicTablesPkg/Library/Common/AmlLib/Utils/AmlUtility.h