Page MenuHomeFreeBSD

i386: Mark the obsolete fields in bootinfo with _was_

Authored by imp on Sep 13 2022, 2:09 AM.
Referenced Files
Unknown Object (File)
Tue, May 21, 7:45 PM
Unknown Object (File)
Sat, May 18, 4:48 AM
Unknown Object (File)
Thu, May 9, 4:33 PM
Unknown Object (File)
Apr 18 2024, 4:45 PM
Unknown Object (File)
Jan 12 2024, 12:05 AM
Unknown Object (File)
Dec 12 2023, 1:48 AM
Unknown Object (File)
Nov 30 2023, 10:39 AM
Unknown Object (File)
Sep 5 2023, 1:54 PM



Mark the obsolete fields in bootinfo with _was_. Note that the fields
from bi_memdesc_version to the end of the structure never were used in a
release. They were added in April 2010 for i386 EFI booting. The boot
loader set these fields though 2019, but no kernel ever looked at them
and we never supported i386 EFI booting, and likely never will in this
form. They can likely be deleted entirely in the future, but locore.S
needs to change to do that (it also needs to change to drop support for
really old booting scenarios as well, which will eliminate bi_endcommon

All the other fields haven't been used since the 4.x -> 5.x cutover of
the wdc driver to ata.

The bi_bios_dev field is used in the handoff between bootXX and the
loader. The loader uses it to determine what disk it was loaded off of
to detmerine the default root filesystem. It's not used by the i386
kernel anymore to determine anything.

Sponsored by: Netflix

Diff Detail

rG FreeBSD src repository
Lint Passed
No Test Coverage
Build Status
Buildable 47355
Build 44242: arc lint + arc unit