Pridana verze v0.1

This commit is contained in:
2026-07-12 05:44:42 +02:00
commit 1266a65b82
40 changed files with 6126 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* AsterOS Kernel
* Autor: Pavel Kalaš
* Rok: 2026
*
*/
/*
* Tento soubor drzi nouzovou cestu pro neobnovitelne chyby jadra.
* Pri volani panic prepne vizualni styl vystupu, vypise duvod selhani
* a bezpecne zastavi CPU, aby se predeslo dalsimu poskozeni stavu.
*/
#include "cpu.h"
#include "display.h"
#include "panic.h"
#include "printk.h"
void panic(const char *reason) {
display_set_color(0x0F, 0x04);
printk("\n[KERNEL PANIC] %s\n", reason ? reason : "unknown");
cpu_halt();
}