git: 5d3fb72667e5 - main - acpidump: Move to acpi.rsdp

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

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

commit 5d3fb72667e5794bf16756e00a87338f4acb7f90
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-10-15 11:05:07 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-10-15 11:05:07 +0000

    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
---
 usr.sbin/acpi/acpidump/acpi_user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/acpi/acpidump/acpi_user.c b/usr.sbin/acpi/acpidump/acpi_user.c
index 4b9209e53507..daa4118089cf 100644
--- a/usr.sbin/acpi/acpidump/acpi_user.c
+++ b/usr.sbin/acpi/acpidump/acpi_user.c
@@ -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);