mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
80c5ff6b9b
commit
0a6b08fda6
1 changed files with 1 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue