]> 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)
commit9bd99bad296075c0ea78686a1f4dd31fca2c7e1a
tree2db57e29d2a0658133645786e030966aba439c72
parentc998432e985d36e98977d051a5180d31f89be2b7
x86/purgatory: Omit use of bin2c

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

Do similar refactoring as in

  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 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