]> git.baikalelectronics.ru Git - kernel.git/commit
x86/purgatory: Omit use of bin2c
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 Jul 2022 02:08:12 +0000 (11:08 +0900)
committerBorislav Petkov <bp@suse.de>
Mon, 25 Jul 2022 08:32:32 +0000 (10:32 +0200)
commit3e2b1c57404366f2bc57f10316a207482c351329
tree2db57e29d2a0658133645786e030966aba439c72
parentd841a0ed9955694418cd213f17dd8cb33a87f537
x86/purgatory: Omit use of bin2c

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

Do similar refactoring as in

  c7a4dc603ed2 ("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 X86_64).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220725020812.622255-2-masahiroy@kernel.org
arch/x86/.gitignore
arch/x86/Kconfig
arch/x86/purgatory/Makefile
arch/x86/purgatory/kexec-purgatory.S [new file with mode: 0644]
scripts/remove-stale-files