blob: 948542e0d5c81a4b92ec6dd9032e5531301169fe (
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);
printf("\n\n!!! PANIC !!!\n");
vprintf(format, list);
printf("\n\n");
while (1)
halt();
}
|