summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/src/HEL
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-04-08 13:38:35 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-04-08 13:38:35 +0200
commit2ac97283d813414973f83d177280aafa7fbaa66f (patch)
treedfb189f320d8202bcaaea58c13e7d9e818f267ac /dev/boot/src/HEL
parentdaff01e877ba628370e506a56b4065aeb5814138 (diff)
kernel, storage, heap, abi: lots of improvements and tweaks.
- Please read the commit details for in-depth insights. - Add stack smash prevention code. - Better prevention in BitMap Mgr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/src/HEL')
-rw-r--r--dev/boot/src/HEL/AMD64/BootEFI.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev/boot/src/HEL/AMD64/BootEFI.cc b/dev/boot/src/HEL/AMD64/BootEFI.cc
index bd1c7860..4102d3b4 100644
--- a/dev/boot/src/HEL/AMD64/BootEFI.cc
+++ b/dev/boot/src/HEL/AMD64/BootEFI.cc
@@ -20,7 +20,7 @@
// Makes the compiler shut up.
#ifndef kMachineModel
-#define kMachineModel "NeKernel"
+#define kMachineModel "Krnl"
#endif // !kMachineModel
#ifndef kExpectedWidth
@@ -334,6 +334,9 @@ EFI_EXTERN_C EFI_API Int32 ModuleMain(EfiHandlePtr image_handle,
Boot::ExitBootServices(map_key, image_handle);
+ handover_hdr->f_BitMapStart = (VoidPtr)((UIntPtr)reader_kernel.Blob() + (UIntPtr)handover_hdr->f_BitMapStart + reader_kernel.Size());
+ handover_hdr->f_BitMapSize -= reader_kernel.Size();
+
if (kernel_thread->Start(handover_hdr, YES) != kEfiOk)
{
// ------------------------------------------ //