git: c5f3a7f62217 - main - loader.efi: Make rsdp global

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 15 Oct 2024 11:14:03 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c5f3a7f62217f20f0c7b2c4fc3fb2646336b0802

commit c5f3a7f62217f20f0c7b2c4fc3fb2646336b0802
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-10-15 11:10:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-10-15 11:10:27 +0000

    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
---
 stand/efi/loader/main.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index 508e7ad2db36..400d46965c61 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -110,6 +110,11 @@ UINT16 boot_current;
  */
 EFI_LOADED_IMAGE *boot_img;
 
+/*
+ * RSDP base table.
+ */
+ACPI_TABLE_RSDP *rsdp;
+
 static bool
 has_keyboard(void)
 {
@@ -915,7 +920,6 @@ ptov(uintptr_t x)
 static void
 acpi_detect(void)
 {
-	ACPI_TABLE_RSDP *rsdp;
 	char buf[24];
 	int revision;