summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-06-22 20:49:46 +0200
committerMichal Simek <monstr@monstr.eu>2010-08-04 10:45:14 +0200
commit0a6b08fda6e3229713e779e30028598c067e904d (patch)
tree95e854f09fec88bc6bb0f42c5cc4da89dd34c8ea /arch/microblaze
parent80c5ff6b9b2dd9a2e99d3d6f74df5e6f888d43e9 (diff)
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>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/entry.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S
index f4fda857855..6c117ceaabe 100644
--- a/arch/microblaze/kernel/entry.S
+++ b/arch/microblaze/kernel/entry.S
@@ -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 */