Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: swpan: fix nwfpe for uaccess changes

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>

+2 -1
+2 -1
arch/arm/nwfpe/entry.S
··· 95 95 reteq r4 @ no, return failure 96 96 97 97 next: 98 + uaccess_enable r3 98 99 .Lx1: ldrt r6, [r5], #4 @ get the next instruction and 99 100 @ increment PC 100 - 101 + uaccess_disable r3 101 102 and r2, r6, #0x0F000000 @ test for FP insns 102 103 teq r2, #0x0C000000 103 104 teqne r2, #0x0D000000