stos: init: Initialize splash if bootcons=false
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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
|
||||
|
||||
+17
-8
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <ex/trace.h>
|
||||
#include <ex/pbi.h>
|
||||
#include <ex/cmdline.h>
|
||||
#include <ke/stos.h>
|
||||
#include <ke/bpal.h>
|
||||
#include <hal/serial.h>
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user