All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/3] Add/use helper functions for finding UEFI config tables
@ 2016-03-01 17:41 Leif Lindholm
  2016-03-01 17:41 ` [RFC 1/3] efi: add configuration table search function Leif Lindholm
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Leif Lindholm @ 2016-03-01 17:41 UTC (permalink / raw)
  To: grub-devel; +Cc: Alexander Graf

(Triggered by Alex's recent patches)

There are a few places in the code manually iterating across the
config tables provided through the UEFI system table. This set
implements a common search function and converts some existing
functions to use it.

I have not yet converted commands/efi/loadbios.c given that it
searches for multiple things in one go. Would be a trivial change.

Also, for cleanliness of call-sites a better approach may be to macroize
the function so that it was possible to simply go:
  ptr = grub_efi_find_config_table(MY_VERY_SPECIAL_GUID);
This was not my preference, since that hides the fact that the
underlying datatype is a 128-bit struct.

Leif Lindholm (3):
  efi: add configuration table search function
  arm64 linux loader: use grub_efi_find_config_table to find DT
  acpi: use grub_efi_find_config_table to find tables

 grub-core/kern/efi/acpi.c    | 28 ++++------------------------
 grub-core/kern/efi/efi.c     | 18 ++++++++++++++++++
 grub-core/loader/arm64/fdt.c | 16 +---------------
 include/grub/efi/efi.h       |  3 +++
 4 files changed, 26 insertions(+), 39 deletions(-)

-- 
2.1.4



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-03-10 20:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 17:41 [RFC 0/3] Add/use helper functions for finding UEFI config tables Leif Lindholm
2016-03-01 17:41 ` [RFC 1/3] efi: add configuration table search function Leif Lindholm
2016-03-01 20:08   ` Andrei Borzenkov
2016-03-01 20:13     ` Vladimir 'phcoder' Serbinenko
2016-03-01 20:28       ` Leif Lindholm
2016-03-10 20:05         ` Vladimir 'phcoder' Serbinenko
2016-03-01 20:14     ` Leif Lindholm
2016-03-01 17:41 ` [RFC 2/3] arm64 linux loader: use grub_efi_find_config_table to find DT Leif Lindholm
2016-03-01 17:41 ` [RFC 3/3] acpi: use grub_efi_find_config_table to find tables Leif Lindholm
2016-03-01 18:38 ` [RFC 0/3] Add/use helper functions for finding UEFI config tables Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.