summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-25 18:19:19 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-25 18:19:41 +0100
commit91c88797f7fa9dbb6cce12c14928a6fbd97d51b6 (patch)
tree9dd58ee1e796684e6ec15902d39836e45a1cf054 /Private/Source
parent2bd2e28868d50a2f3ced8b1bfea68216ed35622a (diff)
Kernel: Did progress on interrupts, moved kernel main to HAL, as the
code here is very specific. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/KernelMain.cxx71
1 files changed, 0 insertions, 71 deletions
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 <ArchKit/ArchKit.hpp>
-#include <Drivers/PS2/Mouse.hxx>
-#include <FirmwareKit/Handover.hxx>
-#include <KernelKit/FileManager.hpp>
-#include <KernelKit/Framebuffer.hpp>
-#include <KernelKit/PEFCodeManager.hxx>
-#include <KernelKit/Rsrc/Award.hxx>
-#include <KernelKit/Rsrc/HCore.hxx>
-#include <KernelKit/Rsrc/Util.hxx>
-#include <NewKit/Json.hpp>
-#include <NewKit/KernelHeap.hpp>
-#include <NewKit/UserHeap.hpp>
-
-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);
- }
-}