aboutsummaryrefslogtreecommitdiff
path: root/tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c
diff options
context:
space:
mode:
authorJ-Alves <joao.alves@arm.com>2021-01-07 15:18:12 +0000
committerJ-Alves <joao.alves@arm.com>2021-03-03 17:36:08 +0000
commit6cb21d985c25383baf105afbd17d52d43006990d (patch)
treec32bb97639aba34bb7af5833c03d203b589150c5 /tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c
parente30228aebedda69f3de8d43a9f2afdec4c384e3e (diff)
downloadtf-a-tests-6cb21d985c25383baf105afbd17d52d43006990d.tar.gz
FF-A: Accessors for arguments from FF-A calls
Defined some accessors for arguments from FF-A calls, namely for func id, error code, and direct message destination/source. This should help make consistent how they were being handled, enforcing also adequate type checking. Replace the accesses to those FF-A arguments with respective wrapper calls. Change-Id: I99d8e77f3b24728c30eafa3e76a830246790ec5f Signed-off-by: J-Alves <joao.alves@arm.com>
Diffstat (limited to 'tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c')
-rw-r--r--tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c b/tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c
index 3b3edba8..c6470c14 100644
--- a/tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c
+++ b/tftf/tests/runtime_services/secure_service/test_spm_cpu_features.c
@@ -55,8 +55,9 @@ test_result_t test_simd_vectors_preserved(void)
smc_ret_values ret = cactus_req_simd_fill_send_cmd(SENDER, RECEIVER);
- if (ret.ret0 != FFA_MSG_SEND_DIRECT_RESP_SMC32) {
- ERROR("Failed to send message. error: %lx\n", ret.ret2);
+ if (ffa_func_id(ret) != FFA_MSG_SEND_DIRECT_RESP_SMC32) {
+ ERROR("Failed to send message. error: %x\n",
+ ffa_error_code(ret));
return TEST_RESULT_FAIL;
}