Skip to content

Commit

Permalink
KVM: PPC: Book3S PR: Fix ABIv2 on LE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Graf committed Jul 7, 2014
1 parent 6ed179b commit 55ab169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/kvm/book3s_interrupts.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
#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)
Expand Down
4 changes: 4 additions & 0 deletions arch/powerpc/kvm/book3s_rmhandlers.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@

#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)

Expand Down

0 comments on commit 55ab169

Please sign in to comment.