mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:27:34 +00:00
Kernel: Removing hardcoded offsets from Memory Manager
Now the kernel page directory and the page tables are located at a safe address, to prevent from paging data colliding with garbage.
This commit is contained in:
parent
39fcd92210
commit
c3c905aa6c
5 changed files with 18 additions and 12 deletions
|
@ -31,6 +31,11 @@ stack_bottom:
|
|||
.skip 32768
|
||||
stack_top:
|
||||
|
||||
.section .page_tables
|
||||
.align 4096
|
||||
page_tables_start:
|
||||
.skip 4096*3
|
||||
|
||||
.section .text
|
||||
|
||||
.global start
|
||||
|
@ -52,7 +57,9 @@ start:
|
|||
|
||||
mov %ebx, multiboot_info_ptr
|
||||
|
||||
pushl $page_tables_start
|
||||
call init
|
||||
add $4, %esp
|
||||
|
||||
pushl $exit_message
|
||||
call kprintf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue