]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
efi: libstub: Move screen_info handling to common code
authorArd Biesheuvel <ardb@kernel.org>
Tue, 11 Oct 2022 15:10:39 +0000 (17:10 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 9 Nov 2022 11:42:02 +0000 (12:42 +0100)
commit732ea9db9d8a6a0444d18ed810cccb2428d8766b
tree186ea3e313ea11d0d5edae397074828c263e98d6
parent06064800d92a1adac3717e86cc6ba5f98c0ef40e
efi: libstub: Move screen_info handling to common code

Currently, arm64, RISC-V and LoongArch rely on the fact that struct
screen_info can be accessed directly, due to the fact that the EFI stub
and the core kernel are part of the same image. This will change after a
future patch, so let's ensure that the screen_info handling is able to
deal with this, by adopting the arm32 approach of passing it as a
configuration table. While at it, switch to ACPI reclaim memory to hold
the screen_info data, which is more appropriate for this kind of
allocation.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
14 files changed:
arch/arm/include/asm/efi.h
arch/arm/kernel/efi.c
arch/arm64/include/asm/efi.h
arch/loongarch/include/asm/efi.h
arch/loongarch/kernel/efi.c
arch/riscv/include/asm/efi.h
drivers/firmware/efi/efi-init.c
drivers/firmware/efi/efi.c
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/arm32-stub.c
drivers/firmware/efi/libstub/efi-stub.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/screen_info.c [new file with mode: 0644]
include/linux/efi.h