stos: init: Initialize splash if bootcons=false

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-23 03:08:39 +00:00
parent 06e9d99925
commit 70a46ab513
2 changed files with 23 additions and 8 deletions
+6
View File
@@ -13,3 +13,9 @@ randomize_hhdm_base: yes
kernel_path: boot():/boot/stoskrnl.sys kernel_path: boot():/boot/stoskrnl.sys
module_path: boot():/boot/pbi.hole module_path: boot():/boot/pbi.hole
cmdline: bootcons=false cmdline: bootcons=false
/SystemPaw 3 (bootcons)
protocol: limine
kernel_path: boot():/boot/stoskrnl.sys
module_path: boot():/boot/pbi.hole
cmdline: bootcons=true
+17 -8
View File
@@ -8,6 +8,7 @@
#include <ex/trace.h> #include <ex/trace.h>
#include <ex/pbi.h> #include <ex/pbi.h>
#include <ex/cmdline.h>
#include <ke/stos.h> #include <ke/stos.h>
#include <ke/bpal.h> #include <ke/bpal.h>
#include <hal/serial.h> #include <hal/serial.h>
@@ -48,18 +49,26 @@ KiKernelEntry(VOID)
/* Initialize boot video */ /* Initialize boot video */
BootVidInit(); BootVidInit();
/* Init bootcons */ /* Initialize the command line parser */
BootVidInitCons(NULL); ExCmdLineInit();
/* Initialize physical memory */
MmInitPmm();
/* Initialize virtual memory */
MmInitVmm();
/* Phase 1 initialization the bootstrap core */ /* Phase 1 initialization the bootstrap core */
HalKpcrP1Init(&BootstrapCore); HalKpcrP1Init(&BootstrapCore);
/* Initialize the pre-boot image manager */ /* Initialize the pre-boot image manager */
ExPbiInit(); 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();
} }