diff options
author | Ruari Phipps <ruari.phipps@arm.com> | 2020-07-17 16:42:21 +0100 |
---|---|---|
committer | Ruari Phipps <ruari.phipps@arm.com> | 2020-08-19 11:06:26 +0000 |
commit | bd0a7e49d0f2b690ab5c1d8fbdac5bcb257f5183 (patch) | |
tree | a0f6eac3d1ec9ebc608032b22048a7c75b4b518b /tftf | |
parent | d75596a2462f4dc9f707e71995576e5ffbb01a65 (diff) | |
download | tf-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.c | 13 |
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); +} |