Changeset View
Changeset View
Standalone View
Standalone View
stand/efi/loader/arch/arm64/exec.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | elf64_exec(struct preloaded_file *fp) | ||||
ACPI_TABLE_RSDP *rsdp; | ACPI_TABLE_RSDP *rsdp; | ||||
Elf_Ehdr *ehdr; | Elf_Ehdr *ehdr; | ||||
char buf[24]; | char buf[24]; | ||||
int err, revision; | int err, revision; | ||||
void (*entry)(vm_offset_t); | void (*entry)(vm_offset_t); | ||||
/* | /* | ||||
* Report the RSDP to the kernel. The old code used the 'hints' method | * Report the RSDP to the kernel. The old code used the 'hints' method | ||||
* to communite this to the kernel. However, while convenient, the | * to communicate this to the kernel, but this is now considered legacy. | ||||
* 'hints' method is fragile and does not work when static hints are | * Instead, move to setting different tunables that start with acpi. | ||||
* compiled into the kernel. Instead, move to setting different tunables | * The old 'hints' can be removed before we branch for FreeBSD 15. | ||||
* that start with acpi. The old 'hints' can be removed before we branch | |||||
* for FreeBSD 15. | |||||
*/ | */ | ||||
rsdp = efi_get_table(&acpi20_guid); | rsdp = efi_get_table(&acpi20_guid); | ||||
if (rsdp == NULL) { | if (rsdp == NULL) { | ||||
rsdp = efi_get_table(&acpi_guid); | rsdp = efi_get_table(&acpi_guid); | ||||
} | } | ||||
if (rsdp != NULL) { | if (rsdp != NULL) { | ||||
sprintf(buf, "0x%016llx", (unsigned long long)rsdp); | sprintf(buf, "0x%016llx", (unsigned long long)rsdp); | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |