blob: 53810416d52d08bf5ec606edc2b278190f64dfe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <lib.h>
#include <stdarg.h>
#include <comus/asm.h>
__attribute__((noreturn)) void panic(const char *format, ...)
{
cli();
va_list list;
va_start(list, format);
kprintf("\n\n!!! PANIC !!!\n");
kvprintf(format, list);
kprintf("\n\n");
while (1)
halt();
}
|