hw_x86_64: Switch to client page tables

After activating the client page tables the client context cannot be
accessed any longer. The mode transition buffer however is globally
mapped and can be used to restore the remaining register values.
This commit is contained in:
Adrian-Ken Rueegsegger 2015-02-18 00:40:03 +01:00 committed by Christian Helmuth
parent 172dec209b
commit 1fc867f1d7
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@
popq %rsi
popq %rbp
/* Switch page tables */
mov CR3_OFFSET(%rax), %rax
mov %rax, %cr3
1: jmp 1b
/* end of the mode transition code */