[PATCH 1/6] powerpc: Add ZERO_GPRS macros for register clears

Segher Boessenkool segher at kernel.crashing.org
Tue Jun 14 04:48:31 AEST 2022


On Sat, Jun 11, 2022 at 08:42:27AM +0000, Christophe Leroy wrote:
> Le 10/06/2022 à 05:32, Rohan McLure a écrit :
> > .macro ZERO_REGS start, end
> > 	.Lreg=\start
> > 	.rept (\end - \start + 1)
> > 	li	.Lreg, 0
> > 	.Lreg=.Lreg+1
> > 	.endr
> > .endm
> 
> I'd have a preference for using a verb, for instance ZEROISE_REGS or 
> CLEAR_REGS

"Zero" is a verb as well (as well as a noun and an adjective) :-)


Segher


More information about the Linuxppc-dev mailing list