summaryrefslogtreecommitdiff
path: root/kernel/libc/exit
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/libc/exit')
-rw-r--r--kernel/libc/exit/assert.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/libc/exit/assert.c b/kernel/libc/exit/assert.c
index 3351249..47c0704 100644
--- a/kernel/libc/exit/assert.c
+++ b/kernel/libc/exit/assert.c
@@ -1,12 +1,11 @@
#include <assert.h>
#include <log.h>
#include <stdio.h>
+#include <cpu/arch_inst.h>
__attribute__((__noreturn__)) void aFailed(char *f, int l) {
kprintf("Assert failed\n");
kprintf("%s : %d\n", f, l);
dump_backtrace(10);
- asm("hlt");
- for (;;)
- ;
+ halt();
}