Page MenuHomeFreeBSD

i386: Mark the obsolete fields in bootinfo with _was_
ClosedPublic

Authored by imp on Sep 13 2022, 2:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 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
Unknown Object (File)
Jun 24 2023, 3:45 AM
Unknown Object (File)
May 15 2023, 4:57 PM
Unknown Object (File)
May 8 2023, 9:58 PM
Subscribers
None

Details

Summary

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
too).

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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable