From 5fdd893728a6506cd7980b85b9862523e841877d Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 10 Oct 2022 18:50:00 +0300 Subject: pass multiboot information to the kernel --- arch/x86/boot/multiboot/head.s | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/x86/boot/multiboot/head.s') diff --git a/arch/x86/boot/multiboot/head.s b/arch/x86/boot/multiboot/head.s index 31051ff..99f8f98 100644 --- a/arch/x86/boot/multiboot/head.s +++ b/arch/x86/boot/multiboot/head.s @@ -81,6 +81,11 @@ _start: runtime support to work as well. */ + /* Push the pointer to the Multiboot information structure. */ + push %ebx + /* Push the magic value. */ + push %eax + /* Enter the high-level kernel. The ABI requires the stack is 16-byte aligned at the time of the call instruction (which afterwards pushes -- cgit v1.2.3-18-g5258