paging is now enabled with __shaky__ code

This commit is contained in:
2025-06-09 21:01:17 -04:00
parent 83b6a9eaf2
commit 920d0b01e1
7 changed files with 97 additions and 10 deletions

View File

@ -0,0 +1,20 @@
global load_page_directory
load_page_directory:
push ebp
mov esp, ebp
mov eax, [esp + 4]
mov cr3, eax
mov esp, ebp
pop ebp
ret
global enable_paging
enable_paging:
push ebp
mov ebp, esp
mov eax, cr0
or eax, 0x80000000
mov cr0, eax
mov esp, ebp
pop ebp
ret