Skip to content

Commit 55ab169

Browse files
committed
KVM: PPC: Book3S PR: Fix ABIv2 on LE
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 <[email protected]>
1 parent 6ed179b commit 55ab169

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

arch/powerpc/kvm/book3s_interrupts.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
#include <asm/exception-64s.h>
2626

2727
#if defined(CONFIG_PPC_BOOK3S_64)
28+
#if defined(_CALL_ELF) && _CALL_ELF == 2
29+
#define FUNC(name) name
30+
#else
2831
#define FUNC(name) GLUE(.,name)
32+
#endif
2933
#define GET_SHADOW_VCPU(reg) addi reg, r13, PACA_SVCPU
3034

3135
#elif defined(CONFIG_PPC_BOOK3S_32)

arch/powerpc/kvm/book3s_rmhandlers.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636

3737
#if defined(CONFIG_PPC_BOOK3S_64)
3838

39+
#if defined(_CALL_ELF) && _CALL_ELF == 2
40+
#define FUNC(name) name
41+
#else
3942
#define FUNC(name) GLUE(.,name)
43+
#endif
4044

4145
#elif defined(CONFIG_PPC_BOOK3S_32)
4246

0 commit comments

Comments
 (0)