Browse Source

xtensa: fix kernel/user jump out of fast_unaligned

Use correct register (a0, just read from the PS) to check user mode bit.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov 11 years ago
parent
commit
a450dc69dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/xtensa/kernel/align.S

+ 1 - 1
arch/xtensa/kernel/align.S

@@ -441,7 +441,7 @@ ENTRY(fast_unaligned)
 	mov	a1, a2
 	mov	a1, a2
 
 
 	rsr	a0, ps
 	rsr	a0, ps
-	bbsi.l  a2, PS_UM_BIT, 1f     # jump if user mode
+	bbsi.l  a0, PS_UM_BIT, 1f     # jump if user mode
 
 
 	movi	a0, _kernel_exception
 	movi	a0, _kernel_exception
 	jx	a0
 	jx	a0