]> git.karo-electronics.de Git - linux-beck.git/commitdiff
microblaze: Save kernel mode in delay slot
authorMichal Simek <monstr@monstr.eu>
Tue, 22 Jun 2010 16:02:06 +0000 (18:02 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 4 Aug 2010 08:32:21 +0000 (10:32 +0200)
This change save one instruction if kernel comes from kernel
space.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/entry.S

index 8f6b4eea4a6f5fb89a364bea7b12ba75bce7e3c9..0747e1d61d553d4064e59f7e9701feed211b64d2 100644 (file)
        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);                                                  \