]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
KVM: PPC: Book3S PR: Fix ABIv2 on LE
authorAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 12:37:53 +0000 (14:37 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 7 Jul 2014 10:02:51 +0000 (12:02 +0200)
We switched to ABIv2 on Little Endian systems now which gets rid of the
dotted function names. Branch to the actual functions when we see such
a system.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_interrupts.S
arch/powerpc/kvm/book3s_rmhandlers.S

index e2c29e381dc7096d13af053526e0d98cf951d08e..d044b8b7c69dd6b675de969d30cc0345d104ba96 100644 (file)
 #include <asm/exception-64s.h>
 
 #if defined(CONFIG_PPC_BOOK3S_64)
+#if defined(_CALL_ELF) && _CALL_ELF == 2
+#define FUNC(name)             name
+#else
 #define FUNC(name)             GLUE(.,name)
+#endif
 #define GET_SHADOW_VCPU(reg)    addi   reg, r13, PACA_SVCPU
 
 #elif defined(CONFIG_PPC_BOOK3S_32)
index 4850a224e5bf230726ffb20bfa8c34aba5530d19..16c4d88ba27df9ed3caba2e37e20d02a40407dbc 100644 (file)
 
 #if defined(CONFIG_PPC_BOOK3S_64)
 
+#if defined(_CALL_ELF) && _CALL_ELF == 2
+#define FUNC(name)             name
+#else
 #define FUNC(name)             GLUE(.,name)
+#endif
 
 #elif defined(CONFIG_PPC_BOOK3S_32)