Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2024 18:56:55 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c2623a73ae0c - stable/14 - acpidump: Move to acpi.rsdp
Message-ID:  <202412281856.4BSIutV9039078@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by imp:

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

commit c2623a73ae0cb973ac6fca9052f6b15046351438
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-10-15 11:05:07 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-12-28 18:16:12 +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
    
    (cherry picked from commit 5d3fb72667e5794bf16756e00a87338f4acb7f90)
---
 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412281856.4BSIutV9039078>