Jon Murphy has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62863 )
Change subject: soc/amd/sabrina: Add counter initializers ......................................................................
soc/amd/sabrina: Add counter initializers
Some counters are not being initialized and are relying on mainboards to set their values. If the mainboards have not implemented these functions it leads to indeterminate behavior.
BUG=b:224618411 TEST=builds
Change-Id: I8d4f5b1124d4017b04bcaf7044216fd696dce63d --- M src/soc/amd/sabrina/fsp_m_params.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/62863/1
diff --git a/src/soc/amd/sabrina/fsp_m_params.c b/src/soc/amd/sabrina/fsp_m_params.c index f069ba8..9e833a4 100644 --- a/src/soc/amd/sabrina/fsp_m_params.c +++ b/src/soc/amd/sabrina/fsp_m_params.c @@ -49,8 +49,8 @@ { const fsp_dxio_descriptor *fsp_dxio; const fsp_ddi_descriptor *fsp_ddi; - size_t num_dxio; - size_t num_ddi; + size_t num_dxio = 0; + size_t num_ddi = 0;
mainboard_get_dxio_ddi_descriptors(&fsp_dxio, &num_dxio, &fsp_ddi, &num_ddi);