Re: [PATCH] powerpc/32: Use r2 in wrtspr() instead of r0

2021-04-21 Thread Michael Ellerman
On Fri, 22 Jan 2021 07:15:03 + (UTC), Christophe Leroy wrote: > wrtspr() is a function to write an arbitrary value in a special > register. It is used on 8xx to write to SPRN_NRI, SPRN_EID and > SPRN_EIE. Writing any value to one of those will play with MSR EE > and MSR RI regardless of that va

[PATCH] powerpc/32: Use r2 in wrtspr() instead of r0

2021-01-21 Thread Christophe Leroy
wrtspr() is a function to write an arbitrary value in a special register. It is used on 8xx to write to SPRN_NRI, SPRN_EID and SPRN_EIE. Writing any value to one of those will play with MSR EE and MSR RI regardless of that value. r0 is used many places in the generated code and using r0 for that c