summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.14.142/arm-thumb2.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-09-12 12:13:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-09-12 13:23:49 +0200
commitc8fb7cd7f6b46b42d588eed80abd1fe6422b1896 (patch)
tree4be894b84e7d9513dc4ce84cc11ac9c48f23f7d1 /target/linux/patches/4.14.142/arm-thumb2.patch
parent364bdfb6058e001024617c6e335e5f3cd41538bf (diff)
move kernel patches
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'target/linux/patches/4.14.142/arm-thumb2.patch')
-rw-r--r--target/linux/patches/4.14.142/arm-thumb2.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/patches/4.14.142/arm-thumb2.patch b/target/linux/patches/4.14.142/arm-thumb2.patch
new file mode 100644
index 000000000..d8d1f4984
--- /dev/null
+++ b/target/linux/patches/4.14.142/arm-thumb2.patch
@@ -0,0 +1,16 @@
+diff -Nur linux-4.14.34.orig/arch/arm/include/asm/assembler.h linux-4.14.34/arch/arm/include/asm/assembler.h
+--- linux-4.14.34.orig/arch/arm/include/asm/assembler.h 2018-04-12 11:32:27.000000000 +0100
++++ linux-4.14.34/arch/arm/include/asm/assembler.h 2018-04-21 17:29:06.424606334 +0100
+@@ -194,10 +194,9 @@
+ */
+ .irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo
+ .macro badr\c, rd, sym
+-#ifdef CONFIG_THUMB2_KERNEL
+- adr\c \rd, \sym + 1
+-#else
+ adr\c \rd, \sym
++#ifdef CONFIG_THUMB2_KERNEL
++ orr\c \rd, \rd, 1
+ #endif
+ .endm
+ .endr