x86/decompressor: Merge trampoline cleanup with switching code
authorArd Biesheuvel <ardb@kernel.org>
Mon, 7 Aug 2023 16:27:12 +0000 (18:27 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 7 Aug 2023 18:51:17 +0000 (20:51 +0200)
commit03dda95137d3247564854ad9032c0354273a159d
treec630d7369defef952883827e7fbd0b1b9c709ad5
parentcb83cece57e1889109dd73ea08ee338668c9d1b8
x86/decompressor: Merge trampoline cleanup with switching code

Now that the trampoline setup code and the actual invocation of it are
all done from the C routine, the trampoline cleanup can be merged into
it as well, instead of returning to asm just to call another C function.

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-16-ardb@kernel.org
arch/x86/boot/compressed/head_64.S
arch/x86/boot/compressed/pgtable_64.c