提交 0a6b08fd 编写于 作者: M Michal Simek

microblaze: Move PT_MODE saving to delay slot

We can save one more instruction if PT_MODE is saved in delay slot
Signed-off-by: NMichal Simek <monstr@monstr.eu>
上级 80c5ff6b
无相关合并请求
......@@ -728,10 +728,8 @@ C_ENTRY(_interrupt):
/* MS: Make room on the stack -> activation record */
addik r1, r1, -STATE_SAVE_SIZE;
SAVE_REGS
swi r1, r1, PTO + PT_MODE; /* 0 - user mode, 1 - kernel mode */
brid 2f;
nop; /* MS: Fill delay slot */
swi r1, r1, PTO + PT_MODE; /* 0 - user mode, 1 - kernel mode */
1:
/* User-mode state save. */
/* MS: get the saved current */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部