summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-04-21 15:16:05 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-05-08 18:33:47 +0200
commit5890298a834c04aaa9b5fb576e5f2b77e79ab38d (patch)
tree901a5c333782769f7f29e2f0842d9cd3cea84045 /arch/arm/kvm
parentLinux 4.1-rc1 (diff)
downloadlinux-5890298a834c04aaa9b5fb576e5f2b77e79ab38d.tar.xz
linux-5890298a834c04aaa9b5fb576e5f2b77e79ab38d.zip
ARM: kvm: fix a bad BSYM() usage
BSYM() should only be used when refering to local symbols in the same assembly file which are resolved by the assembler, and not for linker-fixed up symbols. The use of BSYM() with panic is incorrect as the linker is involved in fixing up this relocation, and it knows whether panic() is ARM or Thumb. Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r--arch/arm/kvm/interrupts.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/interrupts.S b/arch/arm/kvm/interrupts.S
index 79caf79b304a..87847d2c5f99 100644
--- a/arch/arm/kvm/interrupts.S
+++ b/arch/arm/kvm/interrupts.S
@@ -309,7 +309,7 @@ ENTRY(kvm_call_hyp)
THUMB( orr r2, r2, #PSR_T_BIT )
msr spsr_cxsf, r2
mrs r1, ELR_hyp
- ldr r2, =BSYM(panic)
+ ldr r2, =panic
msr ELR_hyp, r2
ldr r0, =\panic_str
clrex @ Clear exclusive monitor