This commit is contained in:
2026-06-14 18:53:54 -05:00
parent 53c5d7d40c
commit ac4b510221
6 changed files with 56 additions and 9 deletions

21
kernel/memory/mm_stubs.S Normal file
View File

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