Platform: Change the HAL prototype to report status
Change the return type of tfm_spm_hal_configure_default_isolation() from
"void" to "enum tfm_plat_err_t" to report errors to caller.
Change-Id: Iadfd82e546a5141f0db1624358f09111fd7530c1
Signed-off-by: Edison Ai <edison.ai@arm.com>
diff --git a/secure_fw/spm/spm_api_func.c b/secure_fw/spm/spm_api_func.c
index be71ec9..d855256 100644
--- a/secure_fw/spm/spm_api_func.c
+++ b/secure_fw/spm/spm_api_func.c
@@ -58,7 +58,10 @@
platform_data_p = part->platform_data_list;
if (platform_data_p != NULL) {
while ((*platform_data_p) != NULL) {
- tfm_spm_hal_configure_default_isolation(idx, *platform_data_p);
+ if (tfm_spm_hal_configure_default_isolation(idx,
+ *platform_data_p) != TFM_PLAT_ERR_SUCCESS) {
+ fail_cnt++;
+ }
++platform_data_p;
}
}