arm-thumb2.patch 510 B

1234567891011
  1. diff -Nur linux-5.4.92.orig/arch/arm/vfp/vfphw.S linux-5.4.92/arch/arm/vfp/vfphw.S
  2. --- linux-5.4.92.orig/arch/arm/vfp/vfphw.S 2021-01-23 15:58:01.000000000 +0100
  3. +++ linux-5.4.92/arch/arm/vfp/vfphw.S 2021-01-28 02:56:42.871473417 +0100
  4. @@ -81,6 +81,7 @@
  5. ldr r3, [sp, #S_PSR] @ Neither lazy restore nor FP exceptions
  6. and r3, r3, #MODE_MASK @ are supported in kernel mode
  7. teq r3, #USR_MODE
  8. +THUMB( it ne )
  9. bne vfp_kmode_exception @ Returns through lr
  10. VFPFMRX r1, FPEXC @ Is the VFP enabled?