diff options
Diffstat (limited to 'tests/runtime_services/secure_service/test_secure_service_handle.c')
-rw-r--r-- | tests/runtime_services/secure_service/test_secure_service_handle.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/tests/runtime_services/secure_service/test_secure_service_handle.c b/tests/runtime_services/secure_service/test_secure_service_handle.c index e452cf2..effa873 100644 --- a/tests/runtime_services/secure_service/test_secure_service_handle.c +++ b/tests/runtime_services/secure_service/test_secure_service_handle.c @@ -11,32 +11,29 @@ #include <plat_topology.h> #include <platform.h> #include <power_management.h> +#include <secure_partition.h> #include <smc.h> #include <spm_svc.h> #include <test_helpers.h> #include <tftf_lib.h> -/******************************************************************************/ +#define MM_COMMUNICATE_DUMMY_ID 42 static event_t cpu_has_finished_test; /* Test routine for test_secure_partition_secondary_cores_seq() */ static test_result_t test_secure_partition_secondary_cores_seq_fn(void) { + secure_partition_request_info_t *sps_request + = create_sps_request(MM_COMMUNICATE_DUMMY_ID, NULL, 0); + INFO("Sending MM_COMMUNICATE_AARCH64 from CPU %u\n", platform_get_core_pos(read_mpidr_el1() & MPID_MASK)); smc_args mm_communicate_smc = { MM_COMMUNICATE_AARCH64, 0, - - /* - * TODO: Use a dummy non-zero value for comm_buffer_address - * until we have a defined interface to specify the - * communication buffer address used by TFTF and Cactus. - */ - 0x100, - + (u_register_t) sps_request, 0 }; @@ -113,18 +110,13 @@ static test_result_t test_secure_partition_secondary_cores_sim_fn(void) { u_register_t cpu_mpid = read_mpidr_el1() & MPID_MASK; unsigned int core_pos = platform_get_core_pos(cpu_mpid); + secure_partition_request_info_t *sps_request + = create_sps_request(MM_COMMUNICATE_DUMMY_ID, NULL, 0); smc_args mm_communicate_smc = { MM_COMMUNICATE_AARCH64, 0, - - /* - * TODO: Use a dummy non-zero value for comm_buffer_address - * until we have a defined interface to specify the - * communication buffer address used by TFTF and Cactus. - */ - 0x100, - + (u_register_t) sps_request, 0 }; |