summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.16.17/arm-thumb2.patch
blob: a5ae3d260abfabce00f26f98fa01a83124f7c532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -Nur linux-4.15.17.orig/arch/arm/include/asm/assembler.h linux-4.15.17/arch/arm/include/asm/assembler.h
--- linux-4.15.17.orig/arch/arm/include/asm/assembler.h	2018-04-12 11:31:21.000000000 +0100
+++ linux-4.15.17/arch/arm/include/asm/assembler.h	2018-04-22 02:14:24.155580474 +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