1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

Kernel: Pass ELF program header locations from multiboot to kernel.

Patch contributed by "pd"
This commit is contained in:
Andreas Kling 2019-05-18 03:06:34 +02:00
parent ba92c07a75
commit 14c896ec58
2 changed files with 31 additions and 4 deletions

View file

@ -1,7 +1,7 @@
.set MULTIBOOT_MAGIC, 0x1badb002
.set MULTIBOOT_PAGE_ALIGN, 0x1
.set MULTIBOOT_MEMORY_INFO, 0x2
.set MULTIBOOT_VIDEO_MODE, 0x4
.set MULTIBOOT_VIDEO_MODE, 0x0
.set multiboot_flags, MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO | MULTIBOOT_VIDEO_MODE
.set multiboot_checksum, -(MULTIBOOT_MAGIC + multiboot_flags)
@ -39,6 +39,9 @@ stack_top:
.extern init
.type init, @function
.extern multiboot_ptr
.type multiboot_ptr, @object
start:
cli
cld
@ -51,6 +54,8 @@ start:
pushl %eax /* Multiboot header magic */
pushl %ebx /* Multiboot header pointer */
mov %ebx, multiboot_ptr
call init
pushl $exit_message