summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2021-01-28 03:19:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2021-01-28 03:21:00 +0100
commit4d8a094c6c30f938dcf3fc0bba068850dec96594 (patch)
tree356d193fdda60f8219f767ee196888b8de3392c5 /target
parent129c3aa5944c2feef3e161cffc9fb678cedbe1c6 (diff)
linux: fix for Qemu vexpress in Thumb mode
Diffstat (limited to 'target')
-rw-r--r--target/linux/patches/5.4.92/arm-thumb2.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/patches/5.4.92/arm-thumb2.patch b/target/linux/patches/5.4.92/arm-thumb2.patch
new file mode 100644
index 000000000..351fa35c7
--- /dev/null
+++ b/target/linux/patches/5.4.92/arm-thumb2.patch
@@ -0,0 +1,11 @@
+diff -Nur linux-5.4.92.orig/arch/arm/vfp/vfphw.S linux-5.4.92/arch/arm/vfp/vfphw.S
+--- linux-5.4.92.orig/arch/arm/vfp/vfphw.S 2021-01-23 15:58:01.000000000 +0100
++++ linux-5.4.92/arch/arm/vfp/vfphw.S 2021-01-28 02:56:42.871473417 +0100
+@@ -81,6 +81,7 @@
+ ldr r3, [sp, #S_PSR] @ Neither lazy restore nor FP exceptions
+ and r3, r3, #MODE_MASK @ are supported in kernel mode
+ teq r3, #USR_MODE
++THUMB( it ne )
+ bne vfp_kmode_exception @ Returns through lr
+
+ VFPFMRX r1, FPEXC @ Is the VFP enabled?