]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(fconf): fix FCONF_ARM_IO_UUID_NUMBER value
authorRob Hughes <robert.hughes@arm.com>
Fri, 20 Jan 2023 10:43:41 +0000 (10:43 +0000)
committerJoanna Farley <joanna.farley@arm.com>
Tue, 4 Apr 2023 09:36:48 +0000 (11:36 +0200)
commite208f3244b311a23b3e7fa1c03b3e98a6228714a
tree110c88aa7924f57a43226969c5f3bec8da55e603
parent7f2bf23dec6e6467704d7d71ec44bee030912987
fix(fconf): fix FCONF_ARM_IO_UUID_NUMBER value

The FCONF_ARM_IO_UUID_NUMBER macro is hardcoded to the number of entries
in the `load_info` array, but this number did not match the actual
length of the array in the case that TRUSTED_BOARD_BOOT is defined, but
SPD_spmd is not defined.

This patch fixes the hardcoded length by replacing it with a more
flexible calculation which sums up the various contributing groups of
entries.

Signed-off-by: Rob Hughes <robert.hughes@arm.com>
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Change-Id: I557bca7dd32c3be084bbba11d84dfa2818cb6790
plat/arm/common/fconf/arm_fconf_io.c