summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/entry-macro-multi.S
diff options
context:
space:
mode:
authorRussell King2015-04-21 15:17:25 +0200
committerRussell King2015-05-08 18:33:50 +0200
commit14327c662822e5e874cb971a7162067519300ca8 (patch)
tree3d3424072fa6ef753c8ffaa2eb79005574149a3e /arch/arm/include/asm/entry-macro-multi.S
parentARM: kvm: fix a bad BSYM() usage (diff)
downloadkernel-qcow2-linux-14327c662822e5e874cb971a7162067519300ca8.tar.gz
kernel-qcow2-linux-14327c662822e5e874cb971a7162067519300ca8.tar.xz
kernel-qcow2-linux-14327c662822e5e874cb971a7162067519300ca8.zip
ARM: replace BSYM() with badr assembly macro
BSYM() was invented to allow us to work around a problem with the assembler, where local symbols resolved by the assembler for the 'adr' instruction did not take account of their ISA. Since we don't want BSYM() used elsewhere, replace BSYM() with a new macro 'badr', which is like the 'adr' pseudo-op, but with the BSYM() mechanics integrated into it. This ensures that the BSYM()-ification is only used in conjunction with 'adr'. Acked-by: Dave Martin <Dave.Martin@arm.com> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/entry-macro-multi.S')
-rw-r--r--arch/arm/include/asm/entry-macro-multi.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/entry-macro-multi.S b/arch/arm/include/asm/entry-macro-multi.S
index 469a2b30fa27..609184f522ee 100644
--- a/arch/arm/include/asm/entry-macro-multi.S
+++ b/arch/arm/include/asm/entry-macro-multi.S
@@ -10,7 +10,7 @@
@
@ routine called with r0 = irq number, r1 = struct pt_regs *
@
- adrne lr, BSYM(1b)
+ badrne lr, 1b
bne asm_do_IRQ
#ifdef CONFIG_SMP
@@ -23,7 +23,7 @@
ALT_SMP(test_for_ipi r0, r2, r6, lr)
ALT_UP_B(9997f)
movne r1, sp
- adrne lr, BSYM(1b)
+ badrne lr, 1b
bne do_IPI
#endif
9997: