mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +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:
parent
8454d3e184
commit
4320c5fd58
5 changed files with 115 additions and 28 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue