Cactus: cmd for mem share tests
Previously there was no cmd id for the mem share tests in
'cactus_test_cmds.h', the func id was being reused. For consistency
added the cmd id 'CACTUS_MEM_SEND_CMD'.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ia2cee00d444d2b753855f2323578df0f9bcf4fb2
diff --git a/spm/cactus/cactus_main.c b/spm/cactus/cactus_main.c
index 3883fac..de1e555 100644
--- a/spm/cactus/cactus_main.c
+++ b/spm/cactus/cactus_main.c
@@ -87,12 +87,10 @@
cactus_cmd = CACTUS_GET_CMD(ffa_ret);
switch (cactus_cmd) {
- case FFA_MEM_SHARE_SMC32:
- case FFA_MEM_LEND_SMC32:
- case FFA_MEM_DONATE_SMC32:
+ case CACTUS_MEM_SEND_CMD:
ffa_memory_management_test(
mb, vm_id, source,
- CACTUS_GET_CMD(ffa_ret),
+ CACTUS_MEM_SEND_GET_FUNC(ffa_ret),
CACTUS_MEM_SEND_GET_HANDLE(ffa_ret));
/*
@@ -133,8 +131,8 @@
*/
expect(handle != FFA_MEMORY_HANDLE_INVALID, true);
- ffa_ret = CACTUS_MEM_SEND_CMD(vm_id, receiver, mem_func,
- handle);
+ ffa_ret = CACTUS_MEM_SEND_CMD_SEND(vm_id, receiver,
+ mem_func, handle);
if (ffa_ret.ret0 != FFA_MSG_SEND_DIRECT_RESP_SMC32) {
ERROR("Failed to send message. error: %lx\n",