Skip to content

Commit 8dd5698

Browse files
author
Maxim Levitsky
committed
efi: libstub: Move screen_info handling to common code
JIRA: https://issues.redhat.com/browse/RHEL-60834 commit 732ea9d Author: Ard Biesheuvel <ardb@kernel.org> Date: Tue Oct 11 17:10:39 2022 +0200 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> RHEL: Downstream only: this commit returns a small chunk of the above commit, which was accidetally removed by commit 5b63e80 Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
1 parent e347423 commit 8dd5698

File tree

1 file changed

+3
-0
lines changed
  • drivers/firmware/efi

1 file changed

+3
-0
lines changed

drivers/firmware/efi/efi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ static const efi_config_table_type_t common_tables[] __initconst = {
606606
#endif
607607
#ifdef CONFIG_UNACCEPTED_MEMORY
608608
{LINUX_EFI_UNACCEPTED_MEM_TABLE_GUID, &efi.unaccepted, "Unaccepted" },
609+
#endif
610+
#ifdef CONFIG_EFI_GENERIC_STUB
611+
{LINUX_EFI_SCREEN_INFO_TABLE_GUID, &screen_info_table },
609612
#endif
610613
{},
611614
};

0 commit comments

Comments
 (0)