summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2023-10-31 14:50:43 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-11-01 15:17:37 +0000
commitfbbbd984998d83cf6b69e9291336aefbac23396c (patch)
tree55cd7ffff1a9aa3f3fac2bea726de0e093a5bd5f /DynamicTablesPkg
parent1b1509abee839b74d3232bbd6a256a1bdc230925 (diff)
downloadedk2-fbbbd984998d83cf6b69e9291336aefbac23396c.tar.gz
edk2-fbbbd984998d83cf6b69e9291336aefbac23396c.tar.bz2
edk2-fbbbd984998d83cf6b69e9291336aefbac23396c.zip
DynamicTablesPkg: Fix assert in CmObject parser
The patch "f81ee47513e5 DynamicTablesPkg: Add an ET info object parser" updates the Configuration Manager object parser to add support for parsing CM_ARM_ET_INFO object. However, the GicC info structure also has an ET Reference token that points to the CM_ARM_ET_INFO object. Therefore, update the GICC info object parser to add an entry to parse the ET reference token. Without this change an assert stating that the RemainingSize != 0 will be triggered. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: levi.yun <yeoreum.yun@arm.com>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r--DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
index 127675d4ce..ce494816ed 100644
--- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
+++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
@@ -84,7 +84,8 @@ STATIC CONST CM_OBJ_PARSER CmArmGicCInfoParser[] = {
{ "ClockDomain", 4, "0x%x", NULL },
{ "AffinityFlags", 4, "0x%x", NULL },
{ "CpcToken", sizeof (CM_OBJECT_TOKEN), "0x%p", NULL },
- { "TRBEInterrupt", 2, "0x%x", NULL }
+ { "TRBEInterrupt", 2, "0x%x", NULL },
+ { "EtToken", sizeof (CM_OBJECT_TOKEN), "0x%p", NULL }
};
/** A parser for EArmObjGicDInfo.