| To: | kvm@vger.kernel.org, linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 14/20] MIPS: Use the UM bit instead of the CU0 enable bit in the status register to figure out the stack for saving regs. |
| From: | Sanjay Lal <sanjayl@kymasys.com> |
| Date: | Wed, 31 Oct 2012 11:20:37 -0400 |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
---
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 15/20] MIPS: If KVM is enabled then use the KVM specific routine to flush the TLBs on a ASID wrap, Sanjay Lal |
|---|---|
| Next by Date: | [PATCH 18/20] MIPS: Export symbols used by KVM/MIPS module, Sanjay Lal |
| Previous by Thread: | [PATCH 15/20] MIPS: If KVM is enabled then use the KVM specific routine to flush the TLBs on a ASID wrap, Sanjay Lal |
| Next by Thread: | [PATCH 18/20] MIPS: Export symbols used by KVM/MIPS module, Sanjay Lal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |