mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
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:
parent
708c8a926a
commit
c2623a73ae
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue