summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/src/BootThread.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/src/BootThread.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/src/BootThread.cc')
-rw-r--r--dev/boot/src/BootThread.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/dev/boot/src/BootThread.cc b/dev/boot/src/BootThread.cc
index eef2104b..c6fb9975 100644
--- a/dev/boot/src/BootThread.cc
+++ b/dev/boot/src/BootThread.cc
@@ -41,8 +41,8 @@ namespace Boot
if (blob_bytes[0] == kMagMz0 &&
blob_bytes[1] == kMagMz1)
{
- LDR_EXEC_HEADER_PTR header_ptr = CFKit::ldr_find_exec_header(blob_bytes);
- LDR_OPTIONAL_HEADER_PTR opt_header_ptr = CFKit::ldr_find_opt_exec_header(blob_bytes);
+ LDR_EXEC_HEADER_PTR header_ptr = CF::ldr_find_exec_header(blob_bytes);
+ LDR_OPTIONAL_HEADER_PTR opt_header_ptr = CF::ldr_find_opt_exec_header(blob_bytes);
if (!header_ptr || !opt_header_ptr)
return;
@@ -117,19 +117,15 @@ namespace Boot
if (handover_struc->HandoverArch != HEL::kArchAMD64)
{
fb_render_string("BootZ: Not an handover header, bad CPU...", 40, 10, RGB(0xFF, 0xFF, 0xFF));
- ::Boot::Stop();
}
-#endif
-
-#ifdef __NE_ARM64__
+#elif defined(__NE_ARM64__)
if (handover_struc->HandoverArch != HEL::kArchARM64)
{
fb_render_string("BootZ: Not an handover header, bad CPU...", 40, 10, RGB(0xFF, 0xFF, 0xFF));
- ::Boot::Stop();
}
#endif
- fb_render_string("BootZ: Not an handover header...", 40, 10, RGB(0xFF, 0xFF, 0xFF));
+ fb_render_string("BootZ: Not an handover header...", 40, 10, RGB(0xFF, 0xFF, 0xFF));
::Boot::Stop();
}
}
@@ -145,7 +141,7 @@ namespace Boot
blob_bytes[3] == kPefMagic[3])
{
// ========================================= //
- // PEF executable detected.
+ // PEF executable has been detected.
// ========================================= //
fStartAddress = nullptr;