Commit 82f6e266 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/32: fix build failure on book3e with KVM

Build failure was introduced by the commit identified below,
due to missed macro expension leading to wrong called function's name.

arch/powerpc/kernel/head_fsl_booke.o: In function `SystemCall':
arch/powerpc/kernel/head_fsl_booke.S:416: undefined reference to `kvmppc_handler_BOOKE_INTERRUPT_SYSCALL_SPRN_SRR1'
Makefile:1052: recipe for target 'vmlinux' failed

The called function should be kvmppc_handler_8_0x01B(). This patch fixes it.
Reported-by: default avatarPaul Mackerras <paulus@ozlabs.org>
Fixes: 1a4b739b ("powerpc/32: implement fast entry for syscalls on BOOKE")
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e8732ffa
...@@ -83,7 +83,7 @@ END_BTB_FLUSH_SECTION ...@@ -83,7 +83,7 @@ END_BTB_FLUSH_SECTION
SAVE_4GPRS(3, r11); \ SAVE_4GPRS(3, r11); \
SAVE_2GPRS(7, r11) SAVE_2GPRS(7, r11)
.macro SYSCALL_ENTRY trapno intno .macro SYSCALL_ENTRY trapno intno srr1
mfspr r10, SPRN_SPRG_THREAD mfspr r10, SPRN_SPRG_THREAD
#ifdef CONFIG_KVM_BOOKE_HV #ifdef CONFIG_KVM_BOOKE_HV
BEGIN_FTR_SECTION BEGIN_FTR_SECTION
...@@ -94,7 +94,7 @@ BEGIN_FTR_SECTION ...@@ -94,7 +94,7 @@ BEGIN_FTR_SECTION
mfspr r11, SPRN_SRR1 mfspr r11, SPRN_SRR1
mtocrf 0x80, r11 /* check MSR[GS] without clobbering reg */ mtocrf 0x80, r11 /* check MSR[GS] without clobbering reg */
bf 3, 1975f bf 3, 1975f
b kvmppc_handler_BOOKE_INTERRUPT_\intno\()_SPRN_SRR1 b kvmppc_handler_\intno\()_\srr1
1975: 1975:
mr r12, r13 mr r12, r13
lwz r13, THREAD_NORMSAVE(2)(r10) lwz r13, THREAD_NORMSAVE(2)(r10)
......
...@@ -413,7 +413,7 @@ interrupt_base: ...@@ -413,7 +413,7 @@ interrupt_base:
/* System Call Interrupt */ /* System Call Interrupt */
START_EXCEPTION(SystemCall) START_EXCEPTION(SystemCall)
SYSCALL_ENTRY 0xc00 SYSCALL SYSCALL_ENTRY 0xc00 BOOKE_INTERRUPT_SYSCALL SPRN_SRR1
/* Auxiliary Processor Unavailable Interrupt */ /* Auxiliary Processor Unavailable Interrupt */
EXCEPTION(0x2900, AP_UNAVAIL, AuxillaryProcessorUnavailable, \ EXCEPTION(0x2900, AP_UNAVAIL, AuxillaryProcessorUnavailable, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment