summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.9.179/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.9.179/arm-thumb2.patch
parent364bdfb6058e001024617c6e335e5f3cd41538bf (diff)
move kernel patches
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'target/linux/patches/4.9.179/arm-thumb2.patch')
-rw-r--r--target/linux/patches/4.9.179/arm-thumb2.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/patches/4.9.179/arm-thumb2.patch b/target/linux/patches/4.9.179/arm-thumb2.patch
new file mode 100644
index 000000000..6a42899b6
--- /dev/null
+++ b/target/linux/patches/4.9.179/arm-thumb2.patch
@@ -0,0 +1,16 @@
+diff -Nur linux-4.9.94.orig/arch/arm/include/asm/assembler.h linux-4.9.94/arch/arm/include/asm/assembler.h
+--- linux-4.9.94.orig/arch/arm/include/asm/assembler.h 2018-04-13 18:48:37.000000000 +0100
++++ linux-4.9.94/arch/arm/include/asm/assembler.h 2018-04-22 10:51:50.317450040 +0100
+@@ -192,10 +192,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