x86/decompressor: Use standard calling convention for trampoline
authorArd Biesheuvel <ardb@kernel.org>
Mon, 7 Aug 2023 16:27:07 +0000 (18:27 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 7 Aug 2023 18:43:59 +0000 (20:43 +0200)
commit918a7a04e71745e99a0efc6753e587439b794b29
treecd0b8fa3ddff5187550cad22f24ddb3ffece8015
parente8972a76aa90c05a0078043413f806c02fcb3487
x86/decompressor: Use standard calling convention for trampoline

Update the trampoline code so its arguments are passed via RDI and RSI,
which matches the ordinary SysV calling convention for x86_64. This will
allow this code to be called directly from C.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lore.kernel.org/r/20230807162720.545787-11-ardb@kernel.org
arch/x86/boot/compressed/head_64.S
arch/x86/boot/compressed/pgtable.h