Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/acpica/OsdEnvironment.c
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
acpi_get_root_from_loader(void) | acpi_get_root_from_loader(void) | ||||
{ | { | ||||
long acpi_root; | long acpi_root; | ||||
if (TUNABLE_ULONG_FETCH("acpi.rsdp", &acpi_root)) | if (TUNABLE_ULONG_FETCH("acpi.rsdp", &acpi_root)) | ||||
return (acpi_root); | return (acpi_root); | ||||
/* | /* | ||||
* The hints mechanism is unreliable (it fails if anybody ever | * The hints mechanism is considered legacy and has been replaced | ||||
* compiled in hints to the kernel). It has been replaced | |||||
* by the tunable method, but is used here as a fallback to | * by the tunable method, but is used here as a fallback to | ||||
* retain maximum compatibility between old loaders and new | * retain maximum compatibility between old loaders and new | ||||
* kernels. It can be removed after 14.0R. | * kernels. It can be removed after 14.0R. | ||||
*/ | */ | ||||
if (resource_long_value("acpi", 0, "rsdp", &acpi_root) == 0) | if (resource_long_value("acpi", 0, "rsdp", &acpi_root) == 0) | ||||
return (acpi_root); | return (acpi_root); | ||||
return (0); | return (0); | ||||
Show All 11 Lines |