diff options
Diffstat (limited to 'dev/Boot/Mod/NetBoot/NetBoot.cc')
| -rw-r--r-- | dev/Boot/Mod/NetBoot/NetBoot.cc | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/dev/Boot/Mod/NetBoot/NetBoot.cc b/dev/Boot/Mod/NetBoot/NetBoot.cc deleted file mode 100644 index 59610262..00000000 --- a/dev/Boot/Mod/NetBoot/NetBoot.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * ======================================================== - * - * NetBoot - * Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - * - * ======================================================== - */ - -#include <Mod/NetBoot/NetBoot.h> -#include <BootKit/BootKit.h> -#include <BootKit/BootThread.h> - -EXTERN_C Int32 ModuleMain(NeOS::HEL::BootInfoHeader* handover) -{ - NETBOOT_INTERNET_HEADER inet{}; - - /// TODO: Read Packet from localhost - - if (inet.PatchLength < 0) - { - Boot::BootTextWriter writer; - writer.Write("NetBootLauncher: No Patch attached to packet.\r"); - - return kEfiFail; - } - - if (!inet.EEPROM) - { - Boot::BootThread thread(inet.Data); - - if (thread.IsValid()) - return thread.Start(handover, YES); - } - else - { - Boot::BootTextWriter writer; - writer.Write("NetBootLauncher: EEPROM flash not available for now.\r"); - - return kEfiFail; // TODO: Add support for EEPROM firmware update. - } - - return kEfiFail; -} |
