arm64: efi: Move dcache cleaning of loaded image out of efi_enter_kernel()
authorArd Biesheuvel <ardb@kernel.org>
Mon, 17 Oct 2022 14:06:39 +0000 (16:06 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 9 Nov 2022 11:42:01 +0000 (12:42 +0100)
commitaaeb3fc614d65ec5c0b838ed1afb59c3f0f04643
treea22b7934b5f0065bab33a177b2c907108dc62ff2
parent0d60ffeec53cc378cc282d51e870275c642532c6
arm64: efi: Move dcache cleaning of loaded image out of efi_enter_kernel()

The efi_enter_kernel() routine will be shared between the existing EFI
stub and the zboot decompressor, and the version of
dcache_clean_to_poc() that the core kernel exports to the stub will not
be available in the latter case.

So move the handling into the .c file which will remain part of the stub
build that integrates directly with the kernel proper.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/efi-entry.S
arch/arm64/kernel/image-vars.h
drivers/firmware/efi/libstub/arm64-stub.c