x86/boot/compressed: Adhere to calling convention in get_sev_encryption_bit()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 22 Nov 2022 16:10:15 +0000 (17:10 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 24 Nov 2022 07:57:41 +0000 (08:57 +0100)
commit30c9ca16a5271ba6f8ad9c86507ff1c789c94677
treecc46ade3571175118d37271e258a6e9a789f9868
parent9d7eaae6a071ff1f718e0aa5e610bb712f8cc632
x86/boot/compressed: Adhere to calling convention in get_sev_encryption_bit()

Make get_sev_encryption_bit() follow the ordinary i386 calling
convention, and only call it if CONFIG_AMD_MEM_ENCRYPT is actually
enabled. This clarifies the calling code, and makes it more
maintainable.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221122161017.2426828-16-ardb@kernel.org
arch/x86/boot/compressed/head_64.S
arch/x86/boot/compressed/mem_encrypt.S