提交 da233552 编写于 作者: M Michal Simek

microblaze: Save kernel mode in delay slot

This change save one instruction if kernel comes from kernel
space.
Signed-off-by: NMichal Simek <monstr@monstr.eu>
上级 e7741075
无相关合并请求
......@@ -282,9 +282,8 @@
tophys(r1,r1); \
addik r1, r1, -STATE_SAVE_SIZE; /* Make room on the stack. */\
SAVE_REGS \
swi r1, r1, PTO+PT_MODE; \
brid 2f; \
nop; /* Fill delay slot */ \
swi r1, r1, PTO+PT_MODE; \
1: /* User-mode state save. */ \
lwi r1, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); /* get saved current */\
tophys(r1,r1); \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部