Load kernel CR3
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
cld; \
|
||||
;\
|
||||
movq %rsp, %rdi; \
|
||||
;\
|
||||
movq %cr3, %rax; \
|
||||
pushq %rax; \
|
||||
;\
|
||||
movq %rsp, %rbp; \
|
||||
;\
|
||||
@@ -30,6 +33,9 @@
|
||||
callq amd64_intr_handler; \
|
||||
;\
|
||||
movq %rbp, %rsp; \
|
||||
;\
|
||||
popq %rax; \
|
||||
movq %rax, %cr3
|
||||
;\
|
||||
pop_regs; \
|
||||
addq $16, %rsp; \
|
||||
|
||||
Reference in New Issue
Block a user