Tests: Tidy service partitions common code
Change-Id: I3eb64f45c4130f9a60c4402a069a3842f461f18a
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/test/hftest/secure_service.c b/test/hftest/secure_service.c
index 4cd1fbf..3a7e246 100644
--- a/test/hftest/secure_service.c
+++ b/test/hftest/secure_service.c
@@ -15,32 +15,13 @@
#include "vmapi/hf/call.h"
+#include "test/abort.h"
#include "test/hftest.h"
alignas(4096) uint8_t kstack[4096];
-HFTEST_ENABLE();
-
-static struct hftest_context global_context;
-
-struct hftest_context *hftest_get_context(void)
-{
- return &global_context;
-}
-
void test_main_sp(void);
-noreturn void abort(void)
-{
- HFTEST_LOG("Service contained failures.");
- /* Cause a fault, as a secondary can't power down the machine. */
- *((volatile uint8_t *)1) = 1;
-
- /* This should never be reached, but to make the compiler happy... */
- for (;;) {
- }
-}
-
noreturn void kmain(void)
{
/*