hw_x86_64: Finally restore RAX client register value

Set the stack to the mode transition buffer and pop the temporary copy
of the RAX client value into the register.
This commit is contained in:
Adrian-Ken Rueegsegger 2015-02-18 00:41:56 +01:00 committed by Christian Helmuth
parent 1fc867f1d7
commit ab9d7afa45
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@
mov CR3_OFFSET(%rax), %rax
mov %rax, %cr3
/* Set stack back to mt buffer and restore client RAX */
mov $_mt_buffer, %rsp
popq %rax
1: jmp 1b
/* end of the mode transition code */