Page MenuHomeFreeBSD

stand: share bootinfo.c between EFI and KBOOT
ClosedPublic

Authored by imp on Feb 1 2023, 11:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 8:41 PM
Unknown Object (File)
Tue, Nov 5, 10:21 AM
Unknown Object (File)
Sat, Oct 19, 12:21 PM
Unknown Object (File)
Fri, Oct 18, 8:25 AM
Unknown Object (File)
Thu, Oct 17, 8:20 AM
Unknown Object (File)
Tue, Oct 15, 11:58 AM
Unknown Object (File)
Oct 12 2024, 5:50 AM
Unknown Object (File)
Oct 10 2024, 10:58 PM
Subscribers

Details

Summary

Connect efi's bootinfo.c to the kboot build, and adjust to use
the kboot specific routines.

The getrootmount() call is independent of EFI. Remove ifdefs so it's
called for kboot too.

The differences between the kboot and efi bootinfo.c files are now tiny.
This could use some more refactoring, but this is a working checkpoint.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Feb 1 2023, 11:15 PM

rebase / refactor / redo

Maybe it should be moved to common?

This revision is now accepted and ready to land.Feb 2 2023, 12:31 PM

Maybe it should be moved to common?

No. Not yet. It can't be used for anything else.

In D38350#871512, @imp wrote:

Maybe it should be moved to common?

No. Not yet. It can't be used for anything else.

We have three different ones of these, reflecting a diverse history of FreeBSD... Refactoring them to be one common thing should be undertaken, but we're not yet there. This is one step in that process.

This revision was automatically updated to reflect the committed changes.