• Ard Biesheuvel's avatar
    ARM: decompressor: run decompressor in place if loaded via UEFI · d0f9ca9b
    Ard Biesheuvel authored
    The decompressor can load from anywhere in memory, and the only reason
    the EFI stub code relocates it is to ensure it appears within the first
    128 MiB of memory, so that the uncompressed kernel ends up at the right
    offset in memory.
    
    We can short circuit this, and simply jump into the decompressor startup
    code at the point where it knows where the base of memory lives. This
    also means there is no need to disable the MMU and caches, create new
    page tables and re-enable them.
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    Reviewed-by: default avatarNicolas Pitre <nico@fluxnic.net>
    d0f9ca9b
arm32-stub.c 6.19 KB