| To: | Sanjay Lal <sanjayl@kymasys.com> |
|---|---|
| Subject: | Re: [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: | "Maciej W. Rozycki" <macro@linux-mips.org> |
| Date: | Sat, 3 Nov 2012 01:11:42 +0000 (GMT) |
| Cc: | kvm@vger.kernel.org, linux-mips@linux-mips.org |
| In-reply-to: | <6BC12683-224F-4867-818C-FE4CF722B272@kymasys.com> |
| 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> |
| References: | <6BC12683-224F-4867-818C-FE4CF722B272@kymasys.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Alpine 2.02 (LFD 1266 2009-07-14) |
On Wed, 31 Oct 2012, Sanjay Lal wrote: > 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. */ Any reason this is needed for? If so, then given that this is generic code a corresponding piece has to be added to support the MIPS I ISA processors that have the user mode bit in a different location. Presumably you'll update all the other places that fiddle with CP0.Status.CU0 too? Maciej |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Failing INOTIFY in 3.6.x?, Lluís Batlle i Rossell |
|---|---|
| Next by Date: | Fw: OFFICE OF THE OPERATION BRAND MANAGER-YOUR LOTTERY FUND IS NOW BEEN RELEASED TO YOU ALREADY PLEASE OPEN THE ATTACHED FILE., Facebook Awards Promotion England |
| Previous by Thread: | Failing INOTIFY in 3.6.x?, Lluís Batlle i Rossell |
| Next by Thread: | Fw: OFFICE OF THE OPERATION BRAND MANAGER-YOUR LOTTERY FUND IS NOW BEEN RELEASED TO YOU ALREADY PLEASE OPEN THE ATTACHED FILE., Facebook Awards Promotion England |
| Indexes: | [Date] [Thread] [Top] [All Lists] |