diff --git a/arch/x86/kernel/entry.asm b/arch/x86/kernel/entry.asm index b1b3a9a7..54b215c7 100644 --- a/arch/x86/kernel/entry.asm +++ b/arch/x86/kernel/entry.asm @@ -27,7 +27,6 @@ SECTION .mboot global start start: - mov esp, _sys_stack ; This points the stack to our new stack area jmp stublet ; This part MUST be 4byte aligned, so we solve that issue using 'ALIGN 4' @@ -58,7 +57,10 @@ mboot: SECTION .text ALIGN 4 stublet: - ; interpret multiboot information +; Initialize the stack pointer. + mov esp, _sys_stack + +; interpret multiboot information extern multiboot_init push ebx call multiboot_init