Enable exception handlers by default in tests.
This will give more useful error messages when tests fail due to
memory faults or other EL1 exceptions.
Bug: 143755046
Change-Id: I5833ab65ac7d44f69118eb004f03cdcedc365874
diff --git a/test/hftest/standalone_main.c b/test/hftest/standalone_main.c
index 63edf1e..f42c71b 100644
--- a/test/hftest/standalone_main.c
+++ b/test/hftest/standalone_main.c
@@ -17,6 +17,8 @@
#include <stdalign.h>
#include <stdint.h>
+#include "hf/arch/vm/interrupts.h"
+
#include "hf/fdt.h"
#include "hf/memiter.h"
#include "hf/mm.h"
@@ -45,6 +47,12 @@
return;
}
+ /*
+ * Install the exception handler with no IRQ callback for now, so that
+ * exceptions are logged.
+ */
+ exception_setup(NULL);
+
hftest_use_list(hftest_begin, hftest_end - hftest_begin);
if (!fdt_root_node(&n, fdt)) {