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.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 31-10-2012 19:20, Sanjay Lal wrote:

Signed-off-by: Sanjay Lal <sanjayl@xxxxxxxxxxx>
---
  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
[...]
@@ -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

   Use tabs, not spaces to indent the code, same as above.

WBR, Sergei




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux