summaryrefslogtreecommitdiff
path: root/kernel/libc/exit/assert.c
blob: 47c0704923aab601464b061a5e71be84a0f2a071 (plain)
1
2
3
4
5
6
7
8
9
10
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);
  halt();
}