add basic paging functionality

This commit is contained in:
2025-03-23 13:39:29 +03:00
parent 1ce599cee1
commit 2f2c824c98
5 changed files with 108 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
global loadPageDirectory
loadPageDirectory:
push ebp
mov ebp, esp
mov eax, [esp+8]
mov cr3, eax
mov esp, ebp
pop ebp
ret
global enablePaging
enablePaging:
push ebp
mov ebp, esp
mov eax, cr0
or eax, 0x80000000
mov cr0, eax
mov esp, ebp
pop ebp
ret