]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/purgatory: Omit use of bin2c
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 Jul 2022 01:56:19 +0000 (10:56 +0900)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:03 +0000 (21:36 +1000)
commit4adfbeaa331595e6bfa81818d0341594e81c4ea8
tree89b0fa0cfd9267c318d09d7a0ffeae1eb477558f
parentec3c116ece4bf0385745a324d0d963364dd2e1e7
powerpc/purgatory: Omit use of bin2c

The .incbin assembler directive is much faster than bin2c + $(CC).

Do similar refactoring as in commit b8abea4e0c09 ("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 depends on PPC64).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220725015619.618070-1-masahiroy@kernel.org
arch/powerpc/Kconfig
arch/powerpc/purgatory/.gitignore
arch/powerpc/purgatory/Makefile
arch/powerpc/purgatory/kexec-purgatory.S [new file with mode: 0644]
scripts/remove-stale-files