summaryrefslogtreecommitdiff
path: root/kernel/libc/exit/assert.c
blob: 89aa863d0cb66f9fe0c57d18d812a7771b3e7a76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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);
  halt();
  kprintf("after halt?\n");
}