Load kernel CR3
This commit is contained in:
@@ -23,6 +23,9 @@ amd64_syscall_entry:
|
||||
|
||||
movq %rsp, %rdi
|
||||
|
||||
movq %cr3, %rax
|
||||
pushq %rax
|
||||
|
||||
movq %rsp, %rbp
|
||||
|
||||
subq $8, %rsp
|
||||
@@ -32,6 +35,9 @@ amd64_syscall_entry:
|
||||
|
||||
movq %rbp, %rsp
|
||||
|
||||
popq %rax
|
||||
movq %rax, %cr3
|
||||
|
||||
pop_regs_skip_rax
|
||||
|
||||
addq $56, %rsp
|
||||
|
||||
Reference in New Issue
Block a user