x86_64: pmap: implement pmap_flush and pmap_remove_range
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user