From 6af9752e2458a631f013438ed698efb835d4e00b Mon Sep 17 00:00:00 2001 From: RaphProductions <81994075+RaphProductions@users.noreply.github.com> Date: Mon, 12 May 2025 08:53:17 +0200 Subject: [PATCH] kernel: now panics since there's no init --- kernel/src/main.c | 4 +-- kernel/src/sys/error_handling/panic.c | 38 ++++++++++++++++----------- kernel/src/sys/error_handling/panic.h | 2 +- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/kernel/src/main.c b/kernel/src/main.c index fd9b080..6e60f5a 100644 --- a/kernel/src/main.c +++ b/kernel/src/main.c @@ -1,7 +1,5 @@ #include "exec/elf.h" #include "exec/exec.h" -#include "fs/tapefs.h" -#include "fs/vfs.h" #include "mm/liballoc/liballoc.h" #include "mm/pmm.h" #include "mm/vma.h" @@ -91,6 +89,8 @@ void kmain(void) { pit_init(1000); sched_init(); + panic("No working initialization program found. (This is normal due to Soaplin's current state, so please do not report this as a bug)"); + log("kernel - Soaplin initialized sucessfully.\n"); while (1) diff --git a/kernel/src/sys/error_handling/panic.c b/kernel/src/sys/error_handling/panic.c index f9ee767..095c1bf 100644 --- a/kernel/src/sys/error_handling/panic.c +++ b/kernel/src/sys/error_handling/panic.c @@ -44,20 +44,6 @@ static void __panic_dump_regs() { __panic_regdump.rflags = 0; __panic_regdump.rsp = 0; __panic_regdump.ss = 0; -} - -void panic() { - __panic_dump_regs(); - - log(" _ __ _ ___ _ \n"); - log("| |/ /___ _ _ _ _ ___| | | _ \\__ _ _ _ (_)__ \n"); - log("| '