From 70a46ab513afc92b8a24a94f34c061861bf91111 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Tue, 23 Jun 2026 03:08:39 +0000 Subject: [PATCH] stos: init: Initialize splash if bootcons=false Signed-off-by: Chloe M. --- paw/base/boot/limine.conf | 6 ++++++ paw/stos/init/init.c | 25 +++++++++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/paw/base/boot/limine.conf b/paw/base/boot/limine.conf index 162e596..d5410f7 100644 --- a/paw/base/boot/limine.conf +++ b/paw/base/boot/limine.conf @@ -13,3 +13,9 @@ randomize_hhdm_base: yes kernel_path: boot():/boot/stoskrnl.sys module_path: boot():/boot/pbi.hole cmdline: bootcons=false + +/SystemPaw 3 (bootcons) + protocol: limine + kernel_path: boot():/boot/stoskrnl.sys + module_path: boot():/boot/pbi.hole + cmdline: bootcons=true diff --git a/paw/stos/init/init.c b/paw/stos/init/init.c index 3c4ff16..3f750fd 100644 --- a/paw/stos/init/init.c +++ b/paw/stos/init/init.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -48,18 +49,26 @@ KiKernelEntry(VOID) /* Initialize boot video */ BootVidInit(); - /* Init bootcons */ - BootVidInitCons(NULL); - - /* Initialize physical memory */ - MmInitPmm(); - - /* Initialize virtual memory */ - MmInitVmm(); + /* Initialize the command line parser */ + ExCmdLineInit(); /* Phase 1 initialization the bootstrap core */ HalKpcrP1Init(&BootstrapCore); /* Initialize the pre-boot image manager */ ExPbiInit(); + + /* + * If the console is not enabled then we should show a + * splash rather thank a black screen. + */ + if (!BootVidConsEn()) { + BootVidSplash(); + } + + /* Initialize physical memory */ + MmInitPmm(); + + /* Initialize virtual memory */ + MmInitVmm(); }