summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_hv_rmhandlers.S
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-06-12 18:16:53 +1000
committerAlexander Graf <agraf@suse.de>2014-07-07 12:02:32 +0200
commit6ed179b67ca1a05034728ab160905900416b1835 (patch)
tree66a759a3fbf98ff2f99e39e5cf2c77a3773730bf /arch/powerpc/kvm/book3s_hv_rmhandlers.S
parent9715a2e8515217206ebf53040c979fdbeb805a21 (diff)
downloadtalos-op-linux-6ed179b67ca1a05034728ab160905900416b1835.tar.gz
talos-op-linux-6ed179b67ca1a05034728ab160905900416b1835.zip
KVM: PPC: Assembly functions exported to modules need _GLOBAL_TOC()
Both kvmppc_hv_entry_trampoline and kvmppc_entry_trampoline are assembly functions that are exported to modules and also require a valid r2. As such we need to use _GLOBAL_TOC so we provide a global entry point that establishes the TOC (r2). Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv_rmhandlers.S')
-rw-r--r--arch/powerpc/kvm/book3s_hv_rmhandlers.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
index 77356fd25ccc..8d9c5d21179d 100644
--- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
+++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
@@ -48,7 +48,7 @@
*
* LR = return address to continue at after eventually re-enabling MMU
*/
-_GLOBAL(kvmppc_hv_entry_trampoline)
+_GLOBAL_TOC(kvmppc_hv_entry_trampoline)
mflr r0
std r0, PPC_LR_STKOFF(r1)
stdu r1, -112(r1)
OpenPOWER on IntegriCloud