test(spm): run ffa_tests on ivy
Move cactus_test_ffa.c to a common directory for SPs so the
ivy partition can also run the same tests.
We also create a sp_platform_def.h file which contains various
plaform defines required for the tests. This header is defined
in both cactus and ivy directories and then fvp and tc0
subdirectories within those. The appropriate header for the sp
and platform being built is then included in the build scripts.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: If65d099d43cd930ef730539b5ad1596e686f788a
diff --git a/spm/cactus/cactus_main.c b/spm/cactus/cactus_main.c
index 56cf21d..f610a3f 100644
--- a/spm/cactus/cactus_main.c
+++ b/spm/cactus/cactus_main.c
@@ -9,7 +9,6 @@
#include <debug.h>
#include <cactus_message_loop.h>
-#include <cactus_platform_def.h>
#include <drivers/arm/pl011.h>
#include <drivers/console.h>
#include <lib/aarch64/arch_helpers.h>
@@ -26,8 +25,8 @@
#include <spm_helpers.h>
#include <std_svc.h>
-#include "cactus_def.h"
-#include "cactus_tests.h"
+#include "sp_def.h"
+#include "sp_tests.h"
#include "cactus.h"
/* Host machine information injected by the build system in the ELF file. */
@@ -199,12 +198,12 @@
mmap_add_region(get_sp_rx_start(vm_id),
get_sp_rx_start(vm_id),
- (CACTUS_RX_TX_SIZE / 2),
+ (SP_RX_TX_SIZE / 2),
MT_RO_DATA);
mmap_add_region(get_sp_tx_start(vm_id),
get_sp_tx_start(vm_id),
- (CACTUS_RX_TX_SIZE / 2),
+ (SP_RX_TX_SIZE / 2),
MT_RW_DATA);
mmap_add(cactus_mmap);