powerpc/64s/exception: KVM_HANDLER reorder arguments to match other macros
Also change argument name (n -> vec) to match others. No generated code change. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190802105709.27696-28-npiggin@gmail.com
This commit is contained in:
parent
141fed2669
commit
7027d53d1a
|
@ -316,7 +316,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)
|
||||||
.endif
|
.endif
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro KVM_HANDLER area, hsrr, n, skip
|
.macro KVM_HANDLER vec, hsrr, area, skip
|
||||||
.if \skip
|
.if \skip
|
||||||
cmpwi r10,KVM_GUEST_MODE_SKIP
|
cmpwi r10,KVM_GUEST_MODE_SKIP
|
||||||
beq 89f
|
beq 89f
|
||||||
|
@ -337,14 +337,14 @@ END_FTR_SECTION_NESTED(CPU_FTR_HAS_PPR,CPU_FTR_HAS_PPR,948)
|
||||||
/* HSRR variants have the 0x2 bit added to their trap number */
|
/* HSRR variants have the 0x2 bit added to their trap number */
|
||||||
.if \hsrr == EXC_HV_OR_STD
|
.if \hsrr == EXC_HV_OR_STD
|
||||||
BEGIN_FTR_SECTION
|
BEGIN_FTR_SECTION
|
||||||
ori r12,r12,(\n + 0x2)
|
ori r12,r12,(\vec + 0x2)
|
||||||
FTR_SECTION_ELSE
|
FTR_SECTION_ELSE
|
||||||
ori r12,r12,(\n)
|
ori r12,r12,(\vec)
|
||||||
ALT_FTR_SECTION_END_IFSET(CPU_FTR_HVMODE | CPU_FTR_ARCH_206)
|
ALT_FTR_SECTION_END_IFSET(CPU_FTR_HVMODE | CPU_FTR_ARCH_206)
|
||||||
.elseif \hsrr
|
.elseif \hsrr
|
||||||
ori r12,r12,(\n + 0x2)
|
ori r12,r12,(\vec + 0x2)
|
||||||
.else
|
.else
|
||||||
ori r12,r12,(\n)
|
ori r12,r12,(\vec)
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
#ifdef CONFIG_RELOCATABLE
|
#ifdef CONFIG_RELOCATABLE
|
||||||
|
@ -386,7 +386,7 @@ END_FTR_SECTION_NESTED(CPU_FTR_HAS_PPR,CPU_FTR_HAS_PPR,948)
|
||||||
#else
|
#else
|
||||||
.macro KVMTEST hsrr, n
|
.macro KVMTEST hsrr, n
|
||||||
.endm
|
.endm
|
||||||
.macro KVM_HANDLER area, hsrr, n, skip
|
.macro KVM_HANDLER vec, hsrr, area, skip
|
||||||
.endm
|
.endm
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -657,7 +657,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_CAN_NAP)
|
||||||
.else
|
.else
|
||||||
TRAMP_KVM_BEGIN(do_kvm_\vec\())
|
TRAMP_KVM_BEGIN(do_kvm_\vec\())
|
||||||
.endif
|
.endif
|
||||||
KVM_HANDLER \area, \hsrr, \vec, \skip
|
KVM_HANDLER \vec, \hsrr, \area, \skip
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
#define EXC_COMMON(name, realvec, hdlr) \
|
#define EXC_COMMON(name, realvec, hdlr) \
|
||||||
|
@ -1538,7 +1538,7 @@ TRAMP_KVM_BEGIN(do_kvm_0xc00)
|
||||||
SET_SCRATCH0(r10)
|
SET_SCRATCH0(r10)
|
||||||
std r9,PACA_EXGEN+EX_R9(r13)
|
std r9,PACA_EXGEN+EX_R9(r13)
|
||||||
mfcr r9
|
mfcr r9
|
||||||
KVM_HANDLER PACA_EXGEN, EXC_STD, 0xc00, 0
|
KVM_HANDLER 0xc00, EXC_STD, PACA_EXGEN, 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue