]> git.baikalelectronics.ru Git - arm-tf.git/commit
test(tc): centralize platform error handling
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Fri, 5 May 2023 11:59:07 +0000 (13:59 +0200)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 15 May 2023 11:02:19 +0000 (13:02 +0200)
commit57cc12c85c789f4aef0bf67caa9d984639f916f2
tree8ffb6df5ae922026b6df81c8cbb91be854f4d14a
parent6fbe11cd6628bc75667eb315a4a8b2f0fbe46f42
test(tc): centralize platform error handling

Note that this change only affects the platform tests execution
path. It has no impact on the normal boot flow.

Make individual test functions propagate an error code, instead of
calling the platform error handler at the point of failure. The latter
is now the responsibility of the caller - in this case
tc_bl31_common_platform_setup().

Note that right now, tc_bl31_common_platform_setup() does not look at
the said error code but this initial change opens up an opportunity to
centralize any error handling in tc_bl31_common_platform_setup(),
which we will seize in subsequent patches.

Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Change-Id: Ib282b64039e0b1ec6e6d29476fbaa2bcd33cb0c7
plat/arm/board/tc/include/tc_plat.h
plat/arm/board/tc/nv_counter_test.c
plat/arm/board/tc/rss_ap_tests.c
plat/arm/board/tc/tc_bl31_setup.c