Skip to content

Commit

Permalink
xtensa: fix kernel/user jump out of fast_unaligned
Browse files Browse the repository at this point in the history
Use correct register (a0, just read from the PS) to check user mode bit.

Signed-off-by: Max Filippov <[email protected]>
  • Loading branch information
jcmvbkbc committed Aug 14, 2014
1 parent b82837c commit a450dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/align.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a450dc6

Please sign in to comment.