summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-10-10 18:50:00 +0300
committerJoursoir <chat@joursoir.net>2022-10-13 19:02:08 +0300
commit5fdd893728a6506cd7980b85b9862523e841877d (patch)
treeb5b4bc6609acc8667de5ed30497523fc86155bba /arch/x86
parentbec2cd1c1322ed6ec3e988de9a9580562d481423 (diff)
downloadmfsos-master.tar.gz
mfsos-master.tar.bz2
mfsos-master.zip
pass multiboot information to the kernelHEADmaster
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/multiboot/head.s5
1 files changed, 5 insertions, 0 deletions
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