From 91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 18:19:19 +0100 Subject: Kernel: Did progress on interrupts, moved kernel main to HAL, as the code here is very specific. Signed-off-by: Amlal El Mahrouss --- Private/Source/KernelMain.cxx | 71 ------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 Private/Source/KernelMain.cxx (limited to 'Private/Source') diff --git a/Private/Source/KernelMain.cxx b/Private/Source/KernelMain.cxx deleted file mode 100644 index 10a5d761..00000000 --- a/Private/Source/KernelMain.cxx +++ /dev/null @@ -1,71 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -EXTERN_C void RuntimeMain( - HCore::HEL::HandoverInformationHeader* HandoverHeader) { - HCore::kcout << "HCoreKrnl: (R) Version 1.00, (C) MahroussLogic all rights " - "reserved.\n"; - - /// Setup kernel globals. - kKernelVirtualSize = HandoverHeader->f_VirtualSize; - kKernelVirtualStart = HandoverHeader->f_VirtualStart; - - kKernelPhysicalSize = HandoverHeader->f_VirtualSize; - kKernelPhysicalStart = HandoverHeader->f_VirtualStart; - - if (HandoverHeader->f_Bootloader == 0xDD) { - /// Mount a New partition. - HCore::IFilesystemManager::Mount(new HCore::NewFilesystemManager()); - - // Open file from first hard-drive. - HCore::PEFLoader img("A:/System/HCoreServer.exe"); - - /// Run the shell. - if (!HCore::Utils::execute_from_image(img)) { - HCore::ke_stop(RUNTIME_CHECK_BOOTSTRAP); - } - } else { - /** - ** This draws the background. - */ - - 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.. - */ - - /** - This mounts the NewFS drive. - */ - - HCore::ke_stop(RUNTIME_CHECK_BOOTSTRAP); - } -} -- cgit v1.2.3