diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-08 14:19:42 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-08 14:19:42 +0200 |
| commit | df8393cebbae61ed7686be17a28d80c657f49b7e (patch) | |
| tree | 96a67cbbe80a69f2b3c59a94a517741b6583a88b /Boot/Sources/HEL | |
| parent | 209ebb8caa774c8d73ead8e0eba3bd65d138930f (diff) | |
[IMP] Code cleanup and improvements of the bootloader, still trying to
figure what is going wrong on the kernel's DLL.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Boot/Sources/HEL')
| -rw-r--r-- | Boot/Sources/HEL/AMD64/BootMain.cxx | 6 | ||||
| -rw-r--r-- | Boot/Sources/HEL/AMD64/New+Delete.cxx | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 8647d00e..0e2be7ac 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -16,7 +16,7 @@ #include <KernelKit/PEF.hxx> #include <NewKit/Macros.hxx> #include <NewKit/Ref.hxx> -#include <BootKit/ProgramLoader.hxx> +#include <BootKit/KernelLoader.hxx> #include <cstring> // make the compiler shut up. @@ -205,7 +205,7 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, readerKernel.ReadAll(0); - Boot::ProgramLoader* loader = nullptr; + Boot::KernelLoader* loader = nullptr; // ------------------------------------------ // // If we succeed in reading the blob, then execute it. @@ -213,7 +213,7 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, if (readerKernel.Blob()) { - loader = new Boot::ProgramLoader(readerKernel.Blob()); + loader = new Boot::KernelLoader(readerKernel.Blob()); loader->SetName("\"newoskrnl.dll\" (64-bit SMP DLL)"); } diff --git a/Boot/Sources/HEL/AMD64/New+Delete.cxx b/Boot/Sources/HEL/AMD64/New+Delete.cxx index b651f091..7039f478 100644 --- a/Boot/Sources/HEL/AMD64/New+Delete.cxx +++ b/Boot/Sources/HEL/AMD64/New+Delete.cxx @@ -44,6 +44,13 @@ void operator delete(void* buf) BS->FreePool(buf); } +/// @brief Deletes the object. +/// @param buf the object. +void operator delete[](void* buf) +{ + BS->FreePool(buf); +} + /// @brief Deletes the object (array specific). /// @param buf the object. /// @param size it's size. |
