Note that static hints no longer break loader hints
This commentary was carried over from the x86 version of the same code,
but has actually been inaccurate for a while now. As of FreeBSD 12.x,
all environments are used unless they disable each other. See
39d44f7f15
("kern_environment: use any provided environments [...]")
for details.
Reviewed by: imp
Differentiala Revision: https://reviews.freebsd.org/D35695
This commit is contained in:
parent
3a5855dd22
commit
61fd6a1ea2
@ -83,11 +83,9 @@ elf64_exec(struct preloaded_file *fp)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* 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);
|
||||||
|
@ -65,8 +65,7 @@ acpi_get_root_from_loader(void)
|
|||||||
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user