Skip to content

Commit

Permalink
ARM: swpan: fix nwfpe for uaccess changes
Browse files Browse the repository at this point in the history
NWFPE needs to access userspace to check whether the next instruction
is another FP instruction.  Allow userspace access for this read.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Sep 9, 2015
1 parent a5e090a commit 39dc53d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/nwfpe/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ emulate:
reteq r4 @ no, return failure

next:
uaccess_enable r3
.Lx1: ldrt r6, [r5], #4 @ get the next instruction and
@ increment PC

uaccess_disable r3
and r2, r6, #0x0F000000 @ test for FP insns
teq r2, #0x0C000000
teqne r2, #0x0D000000
Expand Down

0 comments on commit 39dc53d

Please sign in to comment.