]> git.karo-electronics.de Git - linux-beck.git/commitdiff
microblaze: Do not mix register saving and mode setting
authorMichal Simek <monstr@monstr.eu>
Tue, 22 Jun 2010 16:00:35 +0000 (18:00 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 4 Aug 2010 08:32:20 +0000 (10:32 +0200)
Separate reg saving and mode setting.

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

index cf4a0aa35c0ee7073e5ed0a41b4863ca3ea2fca9..8f6b4eea4a6f5fb89a364bea7b12ba75bce7e3c9 100644 (file)
        tophys(r1,r1);                                                  \
        addik   r1, r1, -STATE_SAVE_SIZE; /* Make room on the stack.  */\
        SAVE_REGS                                                       \
-       swi     r0, r1, PTO + PT_MODE; /* Was in user-mode.  */         \
        lwi     r11, r0, TOPHYS(PER_CPU(ENTRY_SP));                     \
        swi     r11, r1, PTO+PT_R1; /* Store user SP.  */               \
+       swi     r0, r1, PTO + PT_MODE; /* Was in user-mode.  */         \
        /* MS: I am clearing UMS even in case when I come from kernel space */ \
        clear_ums;                                                      \
 2:     lwi     CURRENT_TASK, r0, TOPHYS(PER_CPU(CURRENT_SAVE));