diff options
author | J-Alves <joao.alves@arm.com> | 2021-02-11 15:17:42 +0000 |
---|---|---|
committer | J-Alves <joao.alves@arm.com> | 2021-03-11 09:29:16 +0000 |
commit | 06373c564bbdca87b0043f8f0a4b0f047d6a7457 (patch) | |
tree | 87322ef74cf4dfb6f2411050339223adff307b19 /tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c | |
parent | 035b7d06c41d2eaf69ea86b1b23ee9fedddc4187 (diff) | |
download | tf-a-tests-06373c564bbdca87b0043f8f0a4b0f047d6a7457.tar.gz |
FF-A: Check FF-A return is a valid direct response
Added a helper function to check if return of FFA_MSG_SEND_DIRECT_REQ
is FFA_MSG_SEND_DIRECT_RESP.
This is intended to make it easier to maintain cactus test commands
framework.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ia43e88908aa3cbdd529a8835bffe43dee3e04a76
Diffstat (limited to 'tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c')
-rw-r--r-- | tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c b/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c index 05a8b5914..67ffb53be 100644 --- a/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c +++ b/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c @@ -79,7 +79,7 @@ static test_result_t test_memory_send_sp(uint32_t mem_func) ret = cactus_mem_send_cmd(SENDER, RECEIVER, mem_func, handle); - if (ffa_func_id(ret) != FFA_MSG_SEND_DIRECT_RESP_SMC32) { + if (!is_ffa_direct_response(ret)) { ERROR("Failed to send message. error: %x\n", ffa_error_code(ret)); return TEST_RESULT_FAIL; @@ -144,7 +144,7 @@ static test_result_t test_req_mem_send_sp_to_sp(uint32_t mem_func, ret = cactus_req_mem_send_send_cmd(HYP_ID, sender_sp, mem_func, receiver_sp); - if (ffa_func_id(ret) != FFA_MSG_SEND_DIRECT_RESP_SMC32) { + if (!is_ffa_direct_response(ret)) { ERROR("Failed to send message. error: %x\n", ffa_error_code(ret)); return TEST_RESULT_FAIL; |