diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 16:12:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 16:12:36 +0100 |
| commit | 2bd2e28868d50a2f3ced8b1bfea68216ed35622a (patch) | |
| tree | 4bf376821d13f005d72cbf5feca5cb1f18ae60cd /Private/Source | |
| parent | 9be51d883414584db0926ab854d6026e1785048b (diff) | |
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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/KernelMain.cxx | 15 | ||||
| -rw-r--r-- | Private/Source/Network/IP.cxx (renamed from Private/Source/Network/IP.cpp) | 0 | ||||
| -rw-r--r-- | Private/Source/Network/NetworkDevice.cxx (renamed from Private/Source/Network/NetworkDevice.cpp) | 0 |
3 files changed, 11 insertions, 4 deletions
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 <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> @@ -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); } } diff --git a/Private/Source/Network/IP.cpp b/Private/Source/Network/IP.cxx index b1b45521..b1b45521 100644 --- a/Private/Source/Network/IP.cpp +++ b/Private/Source/Network/IP.cxx diff --git a/Private/Source/Network/NetworkDevice.cpp b/Private/Source/Network/NetworkDevice.cxx index 8443467c..8443467c 100644 --- a/Private/Source/Network/NetworkDevice.cpp +++ b/Private/Source/Network/NetworkDevice.cxx |
