hw_x86_64: Switch to kernel page tables
After switching to the kernel address space the client context region is accessible to store the client register values.
This commit is contained in:
parent
16496af371
commit
3d782282db
|
@ -77,6 +77,10 @@
|
||||||
/* Copy client context RAX to buffer */
|
/* Copy client context RAX to buffer */
|
||||||
mov %rax, _mt_buffer
|
mov %rax, _mt_buffer
|
||||||
|
|
||||||
|
/* Switch to kernel page tables */
|
||||||
|
mov _mt_master_context_begin+CR3_OFFSET, %rax
|
||||||
|
mov %rax, %cr3
|
||||||
|
|
||||||
1: jmp 1b
|
1: jmp 1b
|
||||||
|
|
||||||
.global _mt_user_entry_pic
|
.global _mt_user_entry_pic
|
||||||
|
|
Loading…
Reference in New Issue