This repository has been archived on 2025-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
portland-os/src/kernel/panic.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");
}