diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-09-01 16:33:09 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-01-24 21:49:32 +0000 |
commit | 1bd78b3302c8a615b793c9c644ff167344ae8d23 (patch) | |
tree | 7fd89c93ad3db6da593e49b9af8d0ede712f8622 | |
parent | adeec17f8122f9af4940e6e45391b38b377082c1 (diff) | |
download | src-1bd78b3302c8a615b793c9c644ff167344ae8d23.tar.gz src-1bd78b3302c8a615b793c9c644ff167344ae8d23.zip |
stand: Stop setting hints for bios loader too
Catch up to 2753bbe71b5a and remove the old hints.
Sponsored by: Netflix
(cherry picked from commit b1819983e70f5b8890404b7e07d17888d0cccfb6)
-rw-r--r-- | stand/i386/libi386/biosacpi.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/stand/i386/libi386/biosacpi.c b/stand/i386/libi386/biosacpi.c index 236c3fc45e7b..3bda472f3fc6 100644 --- a/stand/i386/libi386/biosacpi.c +++ b/stand/i386/libi386/biosacpi.c @@ -63,36 +63,24 @@ biosacpi_detect(void) /* * Report the RSDP to the kernel. While this can be found with * a BIOS boot, the RSDP may be elsewhere when booted from UEFI. - * The old code used the 'hints' method to communite this to - * the kernel. However, while convenient, the 'hints' method - * is fragile and does not work when static hints are compiled - * into the kernel. Instead, move to setting different tunables - * that start with acpi. The old 'hints' can be removed before - * we branch for FreeBSD 12. */ sprintf(buf, "0x%08x", VTOP(rsdp)); - setenv("hint.acpi.0.rsdp", buf, 1); setenv("acpi.rsdp", buf, 1); revision = rsdp->Revision; if (revision == 0) revision = 1; sprintf(buf, "%d", revision); - setenv("hint.acpi.0.revision", buf, 1); setenv("acpi.revision", buf, 1); strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); buf[sizeof(rsdp->OemId)] = '\0'; - setenv("hint.acpi.0.oem", buf, 1); setenv("acpi.oem", buf, 1); sprintf(buf, "0x%08x", rsdp->RsdtPhysicalAddress); - setenv("hint.acpi.0.rsdt", buf, 1); setenv("acpi.rsdt", buf, 1); if (revision >= 2) { /* XXX extended checksum? */ sprintf(buf, "0x%016llx", rsdp->XsdtPhysicalAddress); - setenv("hint.acpi.0.xsdt", buf, 1); setenv("acpi.xsdt", buf, 1); sprintf(buf, "%d", rsdp->Length); - setenv("hint.acpi.0.xsdt_length", buf, 1); setenv("acpi.xsdt_length", buf, 1); } } |