blob: be7cffb695b2c4083c9bd79c6e101756cf736935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <kernel/panic.h>
#include <kernel/io.h>
static int panicked = 0;
void panic(const char *str) {
kprintf("KERNEL PANIC\n");
kprintf("ERROR: %s\n", str);
panicked = 1;
while (1);
}
|