fix(memory share): arguments used in retrieve tests
Fix a few small arguments that are used in the hypervisor
retrieve request tests.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I9f6d2d10178331ffea6387a00c05002c07346bc6
diff --git a/include/runtime_services/ffa_helpers.h b/include/runtime_services/ffa_helpers.h
index 3e354f3..0f19827 100644
--- a/include/runtime_services/ffa_helpers.h
+++ b/include/runtime_services/ffa_helpers.h
@@ -525,7 +525,7 @@
#define FFA_MEMORY_REGION_TRANSACTION_TYPE_DONATE ((0x3U) << 3)
/** The maximum number of recipients a memory region may be sent to. */
-#define MAX_MEM_SHARE_RECIPIENTS 1U
+#define MAX_MEM_SHARE_RECIPIENTS 2U
struct ffa_memory_access_impdef {
uint64_t val[2];
diff --git a/tftf/tests/runtime_services/secure_service/spm_common.c b/tftf/tests/runtime_services/secure_service/spm_common.c
index 823db76..d6bbda5 100644
--- a/tftf/tests/runtime_services/secure_service/spm_common.c
+++ b/tftf/tests/runtime_services/secure_service/spm_common.c
@@ -323,7 +323,7 @@
* because `mb->recv` will be overwritten if sending a fragmented
* message.
*/
- memcpy(out, mb->recv, total_size);
+ memcpy(out, mb->recv, fragment_size);
if (region_out->receiver_count == 0) {
VERBOSE("copied region has no recivers\n");
@@ -370,7 +370,7 @@
return false;
}
- fragment_size = ret.arg3;
+ fragment_size = ret.arg2;
if (fragment_size == 0) {
ERROR("%s: fragment size must not be 0\n", __func__);
return false;