blob: 403418fdca31c7e2c127301cb0408e1388843d4f (
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();
}
|