diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-08-01 17:07:10 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-08-14 09:59:26 +0200 |
commit | a450dc69dc57e2bd9de5a970f5015502e6950c73 (patch) | |
tree | fa2584633d19fdbcdd52d54c16523a21b0253dde | |
parent | xtensa: configure kc705 for highmem (diff) | |
download | linux-a450dc69dc57e2bd9de5a970f5015502e6950c73.tar.xz linux-a450dc69dc57e2bd9de5a970f5015502e6950c73.zip |
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>
-rw-r--r-- | arch/xtensa/kernel/align.S | 2 |
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) mov a1, a2 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 jx a0 |