summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-23 10:03:35 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-23 10:03:35 +0200
commit55cea3704776e727b0f38a4f5480c8cdd1834861 (patch)
tree03b546e996c56c1fa0a8dea6da0f74aaff503070 /Private/NewBoot
parent80c4a0ad8ff603036d5582d799c74840d5de806d (diff)
MHR-11: Dont restrict compiler to general registers.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot')
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/BootMain.cxx12
-rw-r--r--Private/NewBoot/Source/makefile2
2 files changed, 9 insertions, 5 deletions
diff --git a/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx b/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
index 638fe37a..6373ed39 100644
--- a/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
@@ -6,6 +6,7 @@
#include <BootKit/BootKit.hxx>
#include <BootKit/Rsrc/Driver.rsrc>
+#include <Builtins/Toolbox/Bezier.hxx>
#include <Builtins/Toolbox/Toolbox.hxx>
#include <KernelKit/MSDOS.hpp>
#include <KernelKit/PE.hxx>
@@ -169,16 +170,19 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle,
BFileReader kernelFile(L"NewKernel.exe", ImageHandle);
kernelFile.ReadAll(KIB(512), 4096);
- ExecOptionalHeaderPtr headerKind = (ExecOptionalHeaderPtr)rt_find_exec_header((DosHeaderPtr)kernelFile.Blob());
+ ExecOptionalHeaderPtr headerKind = (ExecOptionalHeaderPtr)rt_find_exec_header(
+ (DosHeaderPtr)kernelFile.Blob());
if (!headerKind) {
- EFI::RaiseHardError(L"Bad-Exec", L"New Boot can't recognize this executable.");
+ EFI::RaiseHardError(L"Bad-Exec",
+ L"New Boot can't recognize this executable.");
}
- BootMainKind main = (BootMainKind)nullptr;
+ BootMainKind main = (BootMainKind) nullptr;
if (!main) {
- EFI::RaiseHardError(L"Bad-Exec", L"New Boot can't recognize this executable.");
+ EFI::RaiseHardError(L"Bad-Exec",
+ L"New Boot can't recognize this executable.");
}
EFI::ExitBootServices(MapKey, ImageHandle);
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile
index 197eb91b..6fb945ff 100644
--- a/Private/NewBoot/Source/makefile
+++ b/Private/NewBoot/Source/makefile
@@ -30,7 +30,7 @@ REM=rm
REM_FLAG=-f
FLAG_ASM=-f win64
-FLAG_GNU=-fshort-wchar -D__EFI_x86_64__ -mgeneral-regs-only -mno-red-zone -D__KERNEL__ -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -D__BOOTLOADER__ -I./
+FLAG_GNU=-fshort-wchar -D__EFI_x86_64__ -mno-red-zone -D__KERNEL__ -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -D__BOOTLOADER__ -I./
.PHONY: invalid-recipe
invalid-recipe: