1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

Kernel: Make better use of the multiboot info.

Define the multiboot info struct properly so we don't have to grab at byte
offsets in the memory access checker code. Also print kernel command line
in init().
This commit is contained in:
Andreas Kling 2019-06-02 09:50:18 +02:00
parent 8454d3e184
commit 4320c5fd58
5 changed files with 115 additions and 28 deletions

View file

@ -39,8 +39,8 @@ stack_top:
.extern init
.type init, @function
.extern multiboot_ptr
.type multiboot_ptr, @object
.extern multiboot_info_ptr
.type multiboot_info_ptr, @object
start:
cli
@ -54,7 +54,7 @@ start:
pushl %eax /* Multiboot header magic */
pushl %ebx /* Multiboot header pointer */
mov %ebx, multiboot_ptr
mov %ebx, multiboot_info_ptr
call init