aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-08-01 11:07:10 -0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-08-14 03:59:26 -0400
commita450dc69dc57e2bd9de5a970f5015502e6950c73 (patch)
treefa2584633d19fdbcdd52d54c16523a21b0253dde /arch/xtensa
parentb82837c772c3a1d8778295ab094cf46ecddc8057 (diff)
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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/kernel/align.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/align.S b/arch/xtensa/kernel/align.S
index d4cef6039a5c..25a65938dda8 100644
--- a/arch/xtensa/kernel/align.S
+++ b/arch/xtensa/kernel/align.S
@@ -441,7 +441,7 @@ ENTRY(fast_unaligned)
441 mov a1, a2 441 mov a1, a2
442 442
443 rsr a0, ps 443 rsr a0, ps
444 bbsi.l a2, PS_UM_BIT, 1f # jump if user mode 444 bbsi.l a0, PS_UM_BIT, 1f # jump if user mode
445 445
446 movi a0, _kernel_exception 446 movi a0, _kernel_exception
447 jx a0 447 jx a0