Core: change iovec return type to psa_status_t
- Change the return type of the iovec veneer functions to psa_status_t.
- Modify TF-M core to forward any return value from secure functions
that use iovec API to the caller.
- Update Core test services to use negative return values for
error, and zero or positive values for successful secure function
execution.
Change-Id: I5b42a194b955fd003c90d6dfd654ab55be483d20
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
diff --git a/secure_fw/spm/spm_api.c b/secure_fw/spm/spm_api.c
index d520786..1e9b99c 100644
--- a/secure_fw/spm/spm_api.c
+++ b/secure_fw/spm/spm_api.c
@@ -330,6 +330,7 @@
((psa_outvec *)args[2])[i].len;
}
runtime_data->orig_outvec = (psa_outvec *)args[2];
+ runtime_data->iovec_api = 1;
}
uint32_t tfm_spm_partition_get_running_partition_idx(void)
@@ -356,4 +357,5 @@
partition->runtime_data.iovec_args.out_vec[i].len = 0;
}
partition->runtime_data.orig_outvec = 0;
+ partition->runtime_data.iovec_api = 0;
}