hw_x86_64: Continue execution of the kernel
The instruction pointer is the first field of the master context and can directly be used as a jump argument, which avoids additional register copy operations.
This commit is contained in:
parent
ecfb954eb9
commit
16a15237a4
|
@ -135,7 +135,7 @@
|
||||||
|
|
||||||
/* Restore kernel stack and continue kernel execution */
|
/* Restore kernel stack and continue kernel execution */
|
||||||
mov _mt_master_context_begin+SP_OFFSET, %rsp
|
mov _mt_master_context_begin+SP_OFFSET, %rsp
|
||||||
1: jmp 1b
|
jmp *_mt_master_context_begin
|
||||||
|
|
||||||
.global _mt_user_entry_pic
|
.global _mt_user_entry_pic
|
||||||
_mt_user_entry_pic:
|
_mt_user_entry_pic:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user