diff options
Diffstat (limited to 'Private/NewBoot/Source')
| -rw-r--r-- | Private/NewBoot/Source/HEL/AMD64/EfiMain.cxx | 11 | ||||
| -rw-r--r-- | Private/NewBoot/Source/makefile | 1 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Private/NewBoot/Source/HEL/AMD64/EfiMain.cxx b/Private/NewBoot/Source/HEL/AMD64/EfiMain.cxx index a6b80fc1..0102fa8c 100644 --- a/Private/NewBoot/Source/HEL/AMD64/EfiMain.cxx +++ b/Private/NewBoot/Source/HEL/AMD64/EfiMain.cxx @@ -11,14 +11,15 @@ #include <BootKit/Processor.hxx> #include <BootKit/Protocol.hxx> -extern "C" int EfiMain(void *ImageHandle, EfiSystemTable *SystemTable) +EFI_EXTERN_C int EfiMain(EfiHandlePtr ImageHandle, EfiSystemTable *SystemTable) { - SystemTable->conOut->outputString(SystemTable->conOut, L"HCoreLdr: Starting HCore...\r\n"); + SystemTable->ConOut->OutputString(SystemTable->ConOut, L"HCoreLdr: Starting \\EPM\\HCore...\r\n"); - while (true) + if (SystemTable->BootServices->ExitBootServices(ImageHandle, kBaseHandoverStruct) != kEfiOk) { - rt_cli(); - rt_halt(); + SystemTable->ConOut->OutputString(SystemTable->ConOut, L"HCoreLdr: Could not Exit UEFI!\r\nHanging...\r\n"); + + return kEfiFail; } return kEfiOk; diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile index b84f4425..6ccec377 100644 --- a/Private/NewBoot/Source/makefile +++ b/Private/NewBoot/Source/makefile @@ -1,5 +1,6 @@ ################################################## # ; (C) Mahrouss Logic, 2024, all rights reserved. +# This is the bootloader makefile. ################################################## CC_GNU=x86_64-w64-mingw32-g++ |
