This commit is contained in:
nub31
2025-09-01 15:55:44 +02:00
parent 25342b507d
commit 5a119e428a
8 changed files with 58 additions and 154 deletions

View File

@@ -1,5 +1,5 @@
#include "kernel.h"
#include "idt.h"
#include "interrupts.h"
#include "keyboard.h"
#include "vga.h"
@@ -17,11 +17,17 @@ void kernel_main()
while (true)
{
__asm__ volatile ("cli");
__asm__ volatile ("hlt");
}
}
void kernel_panic()
{
vga_print("Kernel panic!\n");
__asm__ volatile("cli; hlt");
while (true)
{
__asm__ volatile ("cli");
__asm__ volatile ("hlt");
}
}