summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/modules/BootNet/BootNet.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 20:19:56 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-28 20:19:56 +0100
commit15493aad092a3e2f0ebacc4fe38d40de02ea67de (patch)
tree036ab95fdf6702b0a1dba53ca7f4670466329f05 /dev/boot/modules/BootNet/BootNet.cc
parentba7b3ed69cd24970a28b72c54982735cd120e663 (diff)
ahci: fix: report success when ahci is detected.
mbci: reintroduce NeKernel's MBCI. cfkit: rename: CFKit -> CF libuser: rename ErrKind to ErrRef. coregfx: fix last unconsistent things about the module. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/modules/BootNet/BootNet.cc')
-rw-r--r--dev/boot/modules/BootNet/BootNet.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/boot/modules/BootNet/BootNet.cc b/dev/boot/modules/BootNet/BootNet.cc
index 4b7e5c30..0ca0998c 100644
--- a/dev/boot/modules/BootNet/BootNet.cc
+++ b/dev/boot/modules/BootNet/BootNet.cc
@@ -13,13 +13,13 @@
EXTERN_C Int32 ModuleMain(Kernel::HEL::BootInfoHeader* handover)
{
- NETBOOT_INTERNET_HEADER inet{};
+ BOOTNET_INTERNET_HEADER inet{};
- memset(&inet, 0, sizeof(NETBOOT_INTERNET_HEADER));
+ memset(&inet, 0, sizeof(BOOTNET_INTERNET_HEADER));
/// TODO: Read packet from JSON file 'bootnet.json'
- if (inet.PatchLength < 1)
+ if (inet.Length < 1)
{
Boot::BootTextWriter writer;
writer.Write("NetBootLauncher: No executable attached to the packet, aborting.\r");
@@ -27,9 +27,9 @@ EXTERN_C Int32 ModuleMain(Kernel::HEL::BootInfoHeader* handover)
return kEfiFail;
}
- if (!inet.EEPROM)
+ if (!inet.ImpliesEEPROM)
{
- Boot::BootThread thread(inet.PatchData);
+ Boot::BootThread thread(inet.Data);
if (thread.IsValid())
return thread.Start(handover, YES);