From d7abbcf60899603fb9ce3ab0e92872a633de6f66 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sat, 11 May 2019 20:55:46 +0200 Subject: [PATCH] It was completely ********* --- boot/loader/loader.asm | 1 - boot/loader/mem/management.inc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/loader/loader.asm b/boot/loader/loader.asm index c3b47dd..001d524 100644 --- a/boot/loader/loader.asm +++ b/boot/loader/loader.asm @@ -170,7 +170,6 @@ _loader64: call write mov qword [newKernelEnd], KERNEL_STACK - mov qword [realKernelEnd], realKernelEnd mov rdi, [mbInfo] mov rsi, [mbMagic] mov rdx, GDT64.code diff --git a/boot/loader/mem/management.inc b/boot/loader/mem/management.inc index 5edec03..5cae794 100644 --- a/boot/loader/mem/management.inc +++ b/boot/loader/mem/management.inc @@ -125,6 +125,7 @@ InitStack: push rdi ;; Begin address to fill and length + mov qword [realKernelEnd], kernelEnd mov rdi, kernelEnd mov rcx, KERNEL_STACK - kernelEnd - 16 ; stop before the return address