aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-09-29 07:56:50 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-09-29 07:56:50 +0000
commit4e991f05b8beb7538cee6939777f36610f8b7bc9 (patch)
treeee8a3ddca0a8fcd35a8654c3d21b62bc64e19242 /arch/x86_64/src/boot
parent6288868ebd728720236d6a857df2658bff2d6547 (diff)
downloadteachos-4e991f05b8beb7538cee6939777f36610f8b7bc9.tar.xz
teachos-4e991f05b8beb7538cee6939777f36610f8b7bc9.zip
Pass multiboot to main from edi register
Diffstat (limited to 'arch/x86_64/src/boot')
-rw-r--r--arch/x86_64/src/boot/boot.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/src/boot/boot.s b/arch/x86_64/src/boot/boot.s
index 7b4e193..d41981a 100644
--- a/arch/x86_64/src/boot/boot.s
+++ b/arch/x86_64/src/boot/boot.s
@@ -366,5 +366,7 @@ _transition_to_long_mode:
call _init
+ mov multiboot_information_pointer, %ebx
+ mov %ebx, %edi
call kernel_main
hlt