13 lines
No EOL
237 B
C
13 lines
No EOL
237 B
C
#include "panic.h"
|
|
#include "log.h"
|
|
#include "vga.h"
|
|
|
|
void panic(const char *message) {
|
|
set_log_mode(LOG_PANIC);
|
|
vga_blank();
|
|
logsz("Kernel panic: ");
|
|
logsz(message);
|
|
logsz("\nHalting.");
|
|
while (1)
|
|
asm volatile ("hlt");
|
|
} |