[PATCH 1/6] powerpc: Add ZERO_GPRS macros for register clears
Michael Ellerman
mpe at ellerman.id.au
Tue Jun 14 14:31:01 AEST 2022
Segher Boessenkool <segher at kernel.crashing.org> writes:
> 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) :-)
And "clear" is also a verb and an adjective, though helpfully the noun
is "clearing" :D
We could use "nullify", that has some existing usage in the kernel,
although I don't really mind, "zeroise" sounds kind of cool :)
cheers
More information about the Linuxppc-dev
mailing list