KERNEL: Physical Page Frame allocation

Rewriting the setup to allow for physical memory allocation again to work.
This commit is contained in:
2022-09-01 16:11:35 +02:00
parent 59ba41f3d2
commit a5e7fdd07e
7 changed files with 107 additions and 84 deletions

View File

@ -35,7 +35,7 @@ _start:
/* push the magic value */
pushl %eax
call testLauncher
call prekernelSetup
# Get physical address of the boot_page_table
movl $(boot_page_table - 0xC0000000), %edi
@ -60,7 +60,6 @@ _start:
3: # Map VGA video memory to 0xC03FF00 as "present, writable"
movl $(0x000B8000 | 0x003), boot_page_table - 0xC0000000 + 1023 * 4
# IMPORTANT NOTE FROM WIKI.OSDEV.ORG/HIGHER_HALF_X86_BARE_BONES
# The page table is used at both page directory entry 0 (virtually from 0x0