From a45872967f07906297782cd04223706cfc326219 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 4 Apr 2024 19:46:31 +0200 Subject: NewBoot: Major bootloader improvements, use __EFI_x86_64__ on EFI platforms, add common device class. Meta: Upate specs and kernel-design. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/NetBoot/EfiModule.cxx | 26 -------------------------- Private/NewBoot/NetBoot/Module.cxx | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 26 deletions(-) delete mode 100644 Private/NewBoot/NetBoot/EfiModule.cxx create mode 100644 Private/NewBoot/NetBoot/Module.cxx (limited to 'Private/NewBoot/NetBoot') diff --git a/Private/NewBoot/NetBoot/EfiModule.cxx b/Private/NewBoot/NetBoot/EfiModule.cxx deleted file mode 100644 index e5df4a3e..00000000 --- a/Private/NewBoot/NetBoot/EfiModule.cxx +++ /dev/null @@ -1,26 +0,0 @@ -/* - * ======================================================== - * - * NetBoot - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include -#include - -EXTERN_C Int32 EfiMain(EfiHandlePtr handle, EfiSystemTable* SystemTable) -{ - InitEFI(ST); - InitGOP(); - - /// - Find a network drive called "/OnlineInstall" - /// - Download our image - /// - Boot from it. - - BTextWriter writer; - writer.Write(L"NetBoot.exe: Updating from OTP...\r\n"); - - return kEfiOk; -} diff --git a/Private/NewBoot/NetBoot/Module.cxx b/Private/NewBoot/NetBoot/Module.cxx new file mode 100644 index 00000000..c89d0a5f --- /dev/null +++ b/Private/NewBoot/NetBoot/Module.cxx @@ -0,0 +1,19 @@ +/* + * ======================================================== + * + * NetBoot + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#include + +EXTERN_C Int32 EfiMain(Void) +{ + /// - Find a network drive called "/OnlineBoot" + /// - Download our image + /// - Boot from it. + + return kEfiOk; +} -- cgit v1.2.3