Enable basic stack canary.
Change-Id: Iee065af935e9276133779a4bd24089be065a0588
diff --git a/src/panic.c b/src/panic.c
index 17399dc..9c0a4f6 100644
--- a/src/panic.c
+++ b/src/panic.c
@@ -18,10 +18,11 @@
#include <stdarg.h>
+#include "hf/abort.h"
#include "hf/dlog.h"
/**
- * Blocks the hypervisor.
+ * Logs a reason before calling abort.
*
* TODO: Determine if we want to omit strings on non-debug builds.
*/
@@ -29,8 +30,6 @@
{
va_list args;
- /* TODO: Block all CPUs. */
-
dlog("Panic: ");
va_start(args, fmt);
@@ -39,6 +38,5 @@
dlog("\n");
- for (;;) {
- }
+ abort();
}