1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 19:17:44 +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:
supercomputer7 2019-11-08 16:37:33 +02:00 committed by Andreas Kling
parent 39fcd92210
commit c3c905aa6c
5 changed files with 18 additions and 12 deletions

View file

@ -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