mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
hw_x86_64: Restore kernel register values from master context
Set stack pointer to master context and restore kernel register by popping the values from the master context.
This commit is contained in:
parent
7b051c0531
commit
c62b4ea36a
@ -115,6 +115,24 @@
|
||||
mov %rbx, %fs
|
||||
mov %rbx, %gs
|
||||
|
||||
/* Restore register values from kernel context */
|
||||
mov $_mt_master_context_begin+R8_OFFSET, %rsp
|
||||
popq %r8
|
||||
popq %r9
|
||||
popq %r10
|
||||
popq %r11
|
||||
popq %r12
|
||||
popq %r13
|
||||
popq %r14
|
||||
popq %r15
|
||||
popq %rax
|
||||
popq %rbx
|
||||
popq %rcx
|
||||
popq %rdx
|
||||
popq %rdi
|
||||
popq %rsi
|
||||
popq %rbp
|
||||
|
||||
1: jmp 1b
|
||||
|
||||
.global _mt_user_entry_pic
|
||||
|
Loading…
x
Reference in New Issue
Block a user