powerpc: Move and fix MTMSR_EERI definition
Subsystems (2)
PATCH 1/1 powerpc: Move and fix MTMSR_EERI definition
Move this duplicated definition to ppc_asm.h and remove the braces which prevent the use of %rN register names
Signed-off-by Benjamin Herrenschmidt <[email protected]>
---
Alex: This is needed to fix the build with Mikey's patch series that enforce proper register name usage in assembly files.
I'm about to merge the whole lot in powerpc -next, possibly tomorrow. I've pushed it all to my "test" branch on k.org for now so I can still rebase.
Please check with whatever you have pending in your or avi's -next as it's possible that there will be build breakage...
If there is and you can send me a fix, I will slip it in before the patch that turns on the enforcement, so please have a look at what I have in 'test' asap.
arch/powerpc/include/asm/ppc_asm.h | 2 ++ arch/powerpc/kvm/book3s_rmhandlers.S | 1 - arch/powerpc/kvm/book3s_segment.S | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-)
arch/powerpc/include/asm/ppc_asm.h +2 -0
@@ -475,6 +475,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)#ifdef CONFIG_PPC_BOOK3S_64 #define RFI rfid#define MTMSRD (r) mtmsrd r +#define MTMSR_EERI (reg) mtmsrd reg,1#else #define FIX_SRR1 (ra, rb)#ifndef CONFIG_40x
@@ -483,6 +484,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)#define RFI rfi; b ./* Prevent prefetch past rfi */ #endif #define MTMSRD (r) mtmsr r +#define MTMSR_EERI (reg) mtmsr reg#define CLR_TOP32 (r)#endif
arch/powerpc/kvm/book3s_rmhandlers.S +0 -1
@@ -37,7 +37,6 @@ #if defined(CONFIG_PPC_BOOK3S_64) #define FUNC(name) GLUE(.,name) -#define MTMSR_EERI(reg) mtmsrd (reg),1 .globl kvmppc_skip_interrupt kvmppc_skip_interrupt:
arch/powerpc/kvm/book3s_segment.S +0 -2
@@ -23,7 +23,6 @@ #define GET_SHADOW_VCPU(reg) \ mr reg, r13 -#define MTMSR_EERI(reg) mtmsrd (reg),1 #elif defined(CONFIG_PPC_BOOK3S_32)
@@ -31,7 +30,6 @@ tophys(reg, r2); \ lwz reg, (THREAD + THREAD_KVM_SVCPU)(reg); \ tophys(reg, reg) -#define MTMSR_EERI(reg) mtmsr (reg) #endif