Re: [PATCH] powerpc/purgatory: Omit use of bin2c

2022-07-24 Thread Masahiro Yamada
On Mon, Jul 25, 2022 at 10:42 AM Segher Boessenkool wrote: > > On Sun, Jun 26, 2022 at 07:40:37AM +0900, Masahiro Yamada wrote: > > The .incbin assembler directive is much faster than bin2c + $(CC). > > And perhaps more importantly it is simpler and less clumsy. > > > --- /dev/null > > +++ b/arch/

Re: [PATCH] powerpc/purgatory: Omit use of bin2c

2022-07-24 Thread Segher Boessenkool
On Sun, Jun 26, 2022 at 07:40:37AM +0900, Masahiro Yamada wrote: > The .incbin assembler directive is much faster than bin2c + $(CC). And perhaps more importantly it is simpler and less clumsy. > --- /dev/null > +++ b/arch/powerpc/purgatory/kexec-purgatory.S > @@ -0,0 +1,14 @@ > +/* SPDX-License-

Re: [PATCH] powerpc/purgatory: Omit use of bin2c

2022-07-24 Thread Masahiro Yamada
On Sun, Jun 26, 2022 at 7:42 AM Masahiro Yamada wrote: > > The .incbin assembler directive is much faster than bin2c + $(CC). > > Do similar refactoring as in commit 4c0f032d4963 ("s390/purgatory: > Omit use of bin2c"). > > Please note the .quad directive matches to size_t in C (both 8 byte) > bec

[PATCH] powerpc/purgatory: Omit use of bin2c

2022-06-25 Thread Masahiro Yamada
The .incbin assembler directive is much faster than bin2c + $(CC). Do similar refactoring as in commit 4c0f032d4963 ("s390/purgatory: Omit use of bin2c"). Please note the .quad directive matches to size_t in C (both 8 byte) because the purgatory is compiled only for the 64-bit kernel. (KEXEC_FILE