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
F147535538: D38350.diff
Wed, Mar 11, 5:13 PM
F147497484: D38350.diff
Wed, Mar 11, 10:57 AM
Unknown Object (File)
Feb 9 2026, 9:12 AM
Unknown Object (File)
Jan 28 2026, 5:43 PM
Unknown Object (File)
Jan 27 2026, 3:37 AM
Unknown Object (File)
Jan 24 2026, 10:55 AM
Unknown Object (File)
Jan 21 2026, 1:06 PM
Unknown Object (File)
Jan 12 2026, 9:47 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49436
Build 46326: arc lint + arc unit

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.