16 {
17 static int level;
19
22
23 level++;
24 if (level == 1) {
25 printf (
"Kernel PANIC at %s:%d in %s(): ",
file, line, function);
26
31
33 } else if (level == 2)
34 printf (
"Kernel PANIC recursion at %s:%d in %s().\n",
35 file, line, function);
36 else {
37
38 }
39
43 for (;;);
44}
void console_panic(void)
Definition: console.c:73
void debug_backtrace(void)
Definition: debug.c:13
bool power_off_when_done
Definition: init.c:50
void power_off(void) NO_RETURN
Definition: init.c:340
enum intr_level intr_disable(void)
Definition: interrupt.c:151
void serial_flush(void)
Definition: serial.c:128
#define va_end(LIST)
Definition: stdarg.h:10
#define va_start(LIST, ARG)
Definition: stdarg.h:9
__builtin_va_list va_list
Definition: stdarg.h:7
int int int vprintf(const char *, va_list) PRINTF_FORMAT(1
int printf(const char *,...) PRINTF_FORMAT(1