Commit 0a6b08fd authored by Michal Simek's avatar 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: default avatarMichal Simek <monstr@monstr.eu>
parent 80c5ff6b
...@@ -728,10 +728,8 @@ C_ENTRY(_interrupt): ...@@ -728,10 +728,8 @@ C_ENTRY(_interrupt):
/* MS: Make room on the stack -> activation record */ /* MS: Make room on the stack -> activation record */
addik r1, r1, -STATE_SAVE_SIZE; addik r1, r1, -STATE_SAVE_SIZE;
SAVE_REGS SAVE_REGS
swi r1, r1, PTO + PT_MODE; /* 0 - user mode, 1 - kernel mode */
brid 2f; brid 2f;
nop; /* MS: Fill delay slot */ swi r1, r1, PTO + PT_MODE; /* 0 - user mode, 1 - kernel mode */
1: 1:
/* User-mode state save. */ /* User-mode state save. */
/* MS: get the saved current */ /* MS: get the saved current */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment