feat(tests): secure partitions receive boot information
The secure partitions used in 'ffa_secure_partitions' receive boot
information, passed in x0. Change main function of the S-EL1 SPs
to handle boot information.
Change-Id: I3747c0017a60ce8e45a3d6c01c4274bf90c132df
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/test/hftest/sel1_secure_service.c b/test/hftest/sel1_secure_service.c
index 374e90b..089032e 100644
--- a/test/hftest/sel1_secure_service.c
+++ b/test/hftest/sel1_secure_service.c
@@ -19,13 +19,20 @@
#include "test/hftest.h"
#include "test/vmapi/ffa.h"
+static struct ffa_boot_info_header* boot_info_header;
+
+struct ffa_boot_info_header* get_boot_info_header(void)
+{
+ return boot_info_header;
+}
+
alignas(4096) uint8_t kstack[MAX_CPUS][4096];
bool sel1_secure_service = true;
void test_main_sp(bool);
-noreturn void kmain(void)
+noreturn void kmain(struct ffa_boot_info_header* boot_info_blob)
{
extern void secondary_ep_entry(void);
struct ffa_value res;
@@ -43,6 +50,8 @@
res = ffa_secondary_ep_register((uintptr_t)secondary_ep_entry);
EXPECT_EQ(res.func, FFA_SUCCESS_32);
+ boot_info_header = boot_info_blob;
+
/* Register RX/TX buffers via FFA_RXTX_MAP */
set_up_mailbox();