]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit2d17bd24b0169d3fdbf003dfd55af600e9a30553
tree2db57e29d2a0658133645786e030966aba439c72
parent61922d3fa686733e08387a8a4e11b02b4af6d43c
x86/purgatory: Omit use of bin2c

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

Do similar refactoring as in

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