blob: e04ae38907ecb21ba8cbd6599718e51c105069c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "panic.h"
#include "vga.h"
void panic(const char *message) {
vga_set_color(0x4f);
vga_blank();
vga_printsz("Kernel panic: ");
vga_printsz(message);
vga_printsz("\nHalting.");
while (1)
asm volatile ("hlt");
}
|