提交 f0249420 编写于 作者: M Mao Minkai 提交者: guzitao

sw64: optimize instruction usage in fork routine

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5PNDF

--------------------------------

Use 'call' instead of 'jmp' in ret_from_fork(), so the 'ret' in
schedule_tail() won't mess up branch prediction.
Signed-off-by: NMao Minkai <maominkai@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 60b73c71
...@@ -426,7 +426,7 @@ __switch_to: ...@@ -426,7 +426,7 @@ __switch_to:
.ent ret_from_fork .ent ret_from_fork
ret_from_fork: ret_from_fork:
ldi $26, ret_from_sys_call ldi $26, ret_from_sys_call
jmp $31, schedule_tail call $31, schedule_tail
.end ret_from_fork .end ret_from_fork
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册