loader.efi: Make rsdp global

Make rsdp pointer to the RSDP global so we can look up other tables.

Sponsored by:		Netflix
Reviewed by:		andrew
Differential Revision:	https://reviews.freebsd.org/D47083

(cherry picked from commit c5f3a7f622)
This commit is contained in:
Warner Losh 2024-10-15 05:10:27 -06:00 committed by Franco Fichtner
parent 714aab4197
commit be3e3cdc61

View file

@ -110,6 +110,11 @@ UINT16 boot_current;
*/
EFI_LOADED_IMAGE *boot_img;
/*
* RSDP base table.
*/
ACPI_TABLE_RSDP *rsdp;
static bool
has_keyboard(void)
{
@ -933,7 +938,6 @@ ptov(uintptr_t x)
static void
acpi_detect(void)
{
ACPI_TABLE_RSDP *rsdp;
char buf[24];
int revision;