x86_64: pmap: implement pmap_flush and pmap_remove_range

This commit is contained in:
2026-04-30 18:59:46 +01:00
parent d5c7a9f030
commit 5654c02f36
2 changed files with 21 additions and 0 deletions
+9
View File
@@ -1,3 +1,11 @@
.global pmap_flush
.type pmap_flush, @function
pmap_flush:
mov %cr3, %rax
mov %rax, %cr3
ret
.global pmap_switch
.type pmap_switch, @function
@@ -6,6 +14,7 @@ pmap_switch:
mov %rdi, %cr3
ret
.global gigabyte_pages
.type gigabyte_pages, @function