From 2bd2e28868d50a2f3ced8b1bfea68216ed35622a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 16:12:36 +0100 Subject: WiP: See below. - Reworking bootloader to adapt if kernel and programs are already here or not for HCoreLdr. - Working on IDT support for HCoreKrnl. - Add Award and Mahrouss Logic logo in recovery-mode for HCoreKrnl. - Working on reading .NewBoot section in HCoreLdr. Signed-off-by: Amlal El Mahrouss --- Private/Source/KernelMain.cxx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Private/Source/KernelMain.cxx') diff --git a/Private/Source/KernelMain.cxx b/Private/Source/KernelMain.cxx index b4ea817a..10a5d761 100644 --- a/Private/Source/KernelMain.cxx +++ b/Private/Source/KernelMain.cxx @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -31,9 +32,6 @@ EXTERN_C void RuntimeMain( kKernelPhysicalSize = HandoverHeader->f_VirtualSize; kKernelPhysicalStart = HandoverHeader->f_VirtualStart; - /// Init the HAL. - MUST_PASS(HCore::ke_init_hal()); - if (HandoverHeader->f_Bootloader == 0xDD) { /// Mount a New partition. HCore::IFilesystemManager::Mount(new HCore::NewFilesystemManager()); @@ -50,9 +48,16 @@ EXTERN_C void RuntimeMain( ** This draws the background. */ - DrawResource(HCoreLogo, HandoverHeader, HCORELOGO_WIDTH, HCORELOGO_HEIGHT, + ResourceInit(); + + DrawResource(HCoreLogo, HandoverHeader, HCORELOGO_HEIGHT, HCORELOGO_WIDTH, 10, 10); + ResourceClear(); + + DrawResource(PoweredByAward, HandoverHeader, POWEREDBYAWARD_HEIGHT, + POWEREDBYAWARD_WIDTH, POWEREDBYAWARD_WIDTH + 20, 10); + /** ** This draws the HCore resource icon.. */ @@ -60,5 +65,7 @@ EXTERN_C void RuntimeMain( /** This mounts the NewFS drive. */ + + HCore::ke_stop(RUNTIME_CHECK_BOOTSTRAP); } } -- cgit v1.2.3