summaryrefslogtreecommitdiffhomepage
path: root/Boot/Sources
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-31 00:13:51 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-31 00:13:51 +0200
commit3bfb95803ba25a04ddb57ebbc0f25e4dec29d7e0 (patch)
tree94fc17899142c1631797b9b6257b04359282741b /Boot/Sources
parent659435af7da4ffb15a309063c892b518707fa9d0 (diff)
[IMP] Can now pass arguments to kernel via handover, new version 0x0113.
[IMP] Timeout functions for heap allocation. [IMP] new mp_ and sched_ category of functions. Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Boot/Sources')
-rw-r--r--Boot/Sources/HEL/AMD64/BootMain.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx
index 3cd6c0e3..8705f4a8 100644
--- a/Boot/Sources/HEL/AMD64/BootMain.cxx
+++ b/Boot/Sources/HEL/AMD64/BootMain.cxx
@@ -197,6 +197,14 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle,
handoverHdrPtr->f_FirmwareVendorLen = BStrLen(SystemTable->FirmwareVendor);
+ // ------------------------------------------ //
+ // draw background color.
+ // ------------------------------------------ //
+
+ CGInit();
+ CGDrawInRegion(CGColor(0xaa, 0x00, 0x00), handoverHdrPtr->f_GOP.f_Height, handoverHdrPtr->f_GOP.f_Width, 0, 0);
+ CGFini();
+
// ---------------------------------------------------- //
// The following checks for an exisiting partition
// inside the disk, if it doesn't have one,
@@ -227,12 +235,18 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle,
Boot::ProgramLoader* loader = nullptr;
+ // ------------------------------------------ //
+ // If we succeed in reading the blob, then execute it.
+ // ------------------------------------------ //
+
if (readerKernel.Blob())
{
loader = new Boot::ProgramLoader(readerKernel.Blob());
- loader->SetName("\"newoskrnl.exe\" (ZKA)");
+ loader->SetName("\"newoskrnl.exe\" (ZKA 64-bit MP)");
}
+ writer.Write("Running: ").Write(loader->GetName()).Write("\r");
+
#endif // ifdef __NEWOS_OTA__
EFI::ExitBootServices(*MapKey, ImageHandle);