blob: 3351249ade4d79bcf26b64981b62223a5e8ebd6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <assert.h>
#include <log.h>
#include <stdio.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 (;;)
;
}
|