diff options
author | Anton Blanchard <anton@samba.org> | 2014-06-12 10:16:53 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-07-07 12:02:32 +0200 |
commit | 6ed179b67ca1a05034728ab160905900416b1835 (patch) | |
tree | 66a759a3fbf98ff2f99e39e5cf2c77a3773730bf /arch/powerpc/kvm/book3s_rmhandlers.S | |
parent | PPC: Add _GLOBAL_TOC for 32bit (diff) | |
download | linux-6ed179b67ca1a05034728ab160905900416b1835.tar.xz 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_rmhandlers.S')
-rw-r--r-- | arch/powerpc/kvm/book3s_rmhandlers.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_rmhandlers.S b/arch/powerpc/kvm/book3s_rmhandlers.S index 9eec675220e6..4850a224e5bf 100644 --- a/arch/powerpc/kvm/book3s_rmhandlers.S +++ b/arch/powerpc/kvm/book3s_rmhandlers.S @@ -146,7 +146,7 @@ kvmppc_handler_skip_ins: * On entry, r4 contains the guest shadow MSR * MSR.EE has to be 0 when calling this function */ -_GLOBAL(kvmppc_entry_trampoline) +_GLOBAL_TOC(kvmppc_entry_trampoline) mfmsr r5 LOAD_REG_ADDR(r7, kvmppc_handler_trampoline_enter) toreal(r7) |