acpidump: Move to acpi.rsdp

Switch from the long obsolete hint.0.acpi.rsdp to acpi.rsdp to get the
root of the ACPI tables.

MFC After:		1 week
Sponsored by:		Netflix
Reviewed by:		andrew, markj
Differential Revision:	https://reviews.freebsd.org/D47079

(cherry picked from commit 5d3fb72667e5794bf16756e00a87338f4acb7f90)
This commit is contained in:
Warner Losh 2024-10-15 05:05:07 -06:00
parent 708c8a926a
commit c2623a73ae

View file

@ -42,7 +42,7 @@
#include "acpidump.h"
static char hint_acpi_0_rsdp[] = "hint.acpi.0.rsdp";
static char acpi_rsdp[] = "acpi.rsdp";
static char machdep_acpi_root[] = "machdep.acpi_root";
static int acpi_mem_fd = -1;
@ -172,7 +172,7 @@ acpi_find_rsd_ptr(void)
addr = 0;
/* Attempt to use kenv or sysctl to find RSD PTR record. */
if (kenv(KENV_GET, hint_acpi_0_rsdp, buf, 20) > 0)
if (kenv(KENV_GET, acpi_rsdp, buf, 20) > 0)
addr = strtoul(buf, NULL, 0);
if (addr == 0) {
len = sizeof(addr);