From 209ebb8caa774c8d73ead8e0eba3bd65d138930f Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 8 Aug 2024 10:53:58 +0200 Subject: [IMP] Working on bootloader improvements, then fixing heap on kernel. - Need to parse a json first. - Then fix the heap inside the newoskrnl.dll Signed-off-by: Amlal EL Mahrouss --- Boot/Sources/HEL/AMD64/BootMain.cxx | 3 ++- Boot/Sources/Root/ZKA/cmd.json | 5 +++++ Boot/Sources/Root/bootloader.json | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Boot/Sources/Root/ZKA/cmd.json (limited to 'Boot') diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 2bc2aca1..8647d00e 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -219,7 +219,8 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, writer.Write("newosldr: Running: ").Write(loader->GetName()).Write("\r"); - CopyMem(handoverHdrPtr->f_CommandLine[0], "/SMP", StrLen("/SMP")); + /// TODO: Parse command line from ZKA\cmd.json + // CopyMem(handoverHdrPtr->f_CommandLine[0], "/SMP", StrLen("/SMP")); handoverHdrPtr->f_FirmwareVendorLen = BStrLen(SystemTable->FirmwareVendor); diff --git a/Boot/Sources/Root/ZKA/cmd.json b/Boot/Sources/Root/ZKA/cmd.json new file mode 100644 index 00000000..213974f5 --- /dev/null +++ b/Boot/Sources/Root/ZKA/cmd.json @@ -0,0 +1,5 @@ +{ + "SMP": true, + "GUI": true + } + \ No newline at end of file diff --git a/Boot/Sources/Root/bootloader.json b/Boot/Sources/Root/bootloader.json index fe1a57d4..ebfcf320 100644 --- a/Boot/Sources/Root/bootloader.json +++ b/Boot/Sources/Root/bootloader.json @@ -1,4 +1,5 @@ { - "newoskrnl.dll": "kernel", - "ZETA/fonts.json": "rsrc" + "newoskrnl.dll": "krnldll", + "ZKA/fonts.json": "rsrc", + "ZKA/cmd.json": "cmdline" } -- cgit v1.2.3