X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fpatches-4.1%2F304-mips_disable_fpu.patch;h=18004227f52954204b65cf7cfd75d33912c395a4;hb=6e07b1ec02dc457eff06f6249503ae9a9249ca26;hp=8b5a1510a38bc6e67c941375cedc1c6b79ed78c3;hpb=cabef9b6e68f8671fa90e83538e3882e19cac19f;p=openwrt-working-2016%2F.git diff --git a/target/linux/generic/patches-4.1/304-mips_disable_fpu.patch b/target/linux/generic/patches-4.1/304-mips_disable_fpu.patch index 8b5a1510a3..18004227f5 100644 --- a/target/linux/generic/patches-4.1/304-mips_disable_fpu.patch +++ b/target/linux/generic/patches-4.1/304-mips_disable_fpu.patch @@ -82,7 +82,7 @@ v2: incorporated changes suggested by Jonas Gorski #ifdef CONFIG_DEBUG_FS struct mips_fpu_emulator_stats { -@@ -66,6 +67,20 @@ extern int do_dsemulret(struct pt_regs * +@@ -66,6 +67,21 @@ extern int do_dsemulret(struct pt_regs * extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx, int has_fpu, void *__user *fault_addr); @@ -96,6 +96,7 @@ v2: incorporated changes suggested by Jonas Gorski + struct mips_fpu_struct *ctx, int has_fpu, + void *__user *fault_addr) +{ ++ *fault_addr = NULL; + return SIGILL; /* we don't speak MIPS FPU */ +} +#endif /* CONFIG_MIPS_FPU_EMULATOR */