aboutsummaryrefslogtreecommitdiff
path: root/tftf
diff options
context:
space:
mode:
authorRuari Phipps <ruari.phipps@arm.com>2020-07-17 16:42:21 +0100
committerRuari Phipps <ruari.phipps@arm.com>2020-08-19 11:06:26 +0000
commitbd0a7e49d0f2b690ab5c1d8fbdac5bcb257f5183 (patch)
treea0f6eac3d1ec9ebc608032b22048a7c75b4b518b /tftf
parentd75596a2462f4dc9f707e71995576e5ffbb01a65 (diff)
downloadtf-a-tests-bd0a7e49d0f2b690ab5c1d8fbdac5bcb257f5183.tar.gz
Cactus: Map RXTX region to third partion.
When the third cactus partition is booted, map the RXTX region using the FFA_RXTX_MAP ABI. If this is successful, point the mailbox to this RXTX region. Signed-off-by: Ruari Phipps <ruari.phipps@arm.com> Change-Id: Ifbe3bc70b187f75f29ef66356e714e8a905d2db8
Diffstat (limited to 'tftf')
-rw-r--r--tftf/tests/runtime_services/secure_service/ffa_helpers.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tftf/tests/runtime_services/secure_service/ffa_helpers.c b/tftf/tests/runtime_services/secure_service/ffa_helpers.c
index c90cac806..7ccf89003 100644
--- a/tftf/tests/runtime_services/secure_service/ffa_helpers.c
+++ b/tftf/tests/runtime_services/secure_service/ffa_helpers.c
@@ -247,3 +247,16 @@ smc_ret_values ffa_rx_release(void)
return tftf_smc(&args);
}
+
+/* Map the RXTX buffer */
+smc_ret_values ffa_rxtx_map(uintptr_t send, uintptr_t recv, uint32_t pages)
+{
+ smc_args args = {
+ .fid = FFA_RXTX_MAP_SMC64,
+ .arg1 = send,
+ .arg2 = recv,
+ .arg3 = pages
+ };
+
+ return tftf_smc(&args);
+}