From: Russell King Date: Sun, 6 Sep 2015 23:29:15 +0000 (+0100) Subject: ARM: swpan: fix nwfpe for uaccess changes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39dc53deff30d9b239ac36cfeb0ef2022d03a449;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/arch/arm/nwfpe/entry.S b/arch/arm/nwfpe/entry.S index 71df43547659..39c20afad7ed 100644 --- a/arch/arm/nwfpe/entry.S +++ b/arch/arm/nwfpe/entry.S @@ -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