feature: enable paging and load page directory

This commit is contained in:
2024-09-18 17:14:06 +02:00
parent 65a59534b4
commit ddf3cfff68
5 changed files with 74 additions and 4 deletions

12
src/memory/load_pd.s Normal file
View File

@ -0,0 +1,12 @@
.intel_syntax noprefix
.text
.global load_page_directory
load_page_directory:
push ebp
mov ebp, esp
mov eax, [esp + 8]
mov cr3, eax
mov esp, ebp
pop ebp
ret