summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/lib/romcc_console.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/lib/romcc_console.c b/src/arch/x86/lib/romcc_console.c
index 9e0c3c93fc..a6424ddeee 100644
--- a/src/arch/x86/lib/romcc_console.c
+++ b/src/arch/x86/lib/romcc_console.c
@@ -20,6 +20,7 @@
#include <build.h>
#include <console/streams.h>
#include <console/early_print.h>
+#include <console/loglevel.h>
/* Include the sources. */
#if CONFIG_CONSOLE_SERIAL && CONFIG_DRIVERS_UART_8250IO
@@ -78,3 +79,9 @@ void console_init(void)
print_info(console_test);
}
+
+void die(const char *msg)
+{
+ print_emerg(msg);
+ halt();
+}