summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.14.311/arm-thumb2.patch
blob: d8d1f4984cd9d322e88bb2dafbea77ff369c5186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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