fixing up paging issues

This commit is contained in:
2026-06-15 18:09:04 -04:00
parent ac4b510221
commit 25da0f6a71
7 changed files with 101 additions and 85 deletions

View File

@@ -1,21 +1,11 @@
.code32
.global load_page_directory
load_page_directory:
push %ebp
mov %esp, %ebp
mov 8(%ebp), %eax
.code32
.global flush_tlb
flush_tlb:
mov %cr3, %eax
mov %eax, %cr3
leave
ret
.global enable_paging
enable_paging:
mov %eax, %cr0
orl $0x80000000, %eax
mov %cr0, %eax
jmp 1f
1:
.global disable_pae
disable_pae:
ret