Signed-off-by: Sanjay Lal <[email protected]>
---
arch/mips/include/asm/stackframe.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/include/asm/stackframe.h
b/arch/mips/include/asm/stackframe.h
index cb41af5..59c9245 100644
--- a/arch/mips/include/asm/stackframe.h
+++ b/arch/mips/include/asm/stackframe.h
@@ -30,7 +30,7 @@
#define STATMASK 0x1f
#endif
-#ifdef CONFIG_MIPS_MT_SMTC
+#if defined(CONFIG_MIPS_MT_SMTC) || defined (CONFIG_MIPS_HW_FIBERS)
#include <asm/mipsmtregs.h>
#endif /* CONFIG_MIPS_MT_SMTC */
@@ -162,9 +162,9 @@
.set noat
.set reorder
mfc0 k0, CP0_STATUS
- sll k0, 3 /* extract cu0 bit */
+ andi k0,k0,0x10 /* check user mode bit*/
.set noreorder
- bltz k0, 8f
+ beq k0, $0, 8f
move k1, sp
.set reorder
/* Called from user mode, new stack. */
--
1.7.11.3
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html