Page MenuHomeFreeBSD

loader: Make MK_LOADER_BIOS_TEXTONLY work
ClosedPublic

Authored by imp on Feb 15 2024, 12:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 31, 10:31 AM
Unknown Object (File)
Dec 5 2024, 4:12 AM
Unknown Object (File)
Nov 27 2024, 2:29 AM
Unknown Object (File)
Nov 27 2024, 2:28 AM
Unknown Object (File)
Nov 27 2024, 2:01 AM
Unknown Object (File)
Sep 23 2024, 9:51 AM
Unknown Object (File)
Sep 23 2024, 1:54 AM
Unknown Object (File)
Sep 22 2024, 11:38 PM
Subscribers

Details

Summary

Select between text-only and graphical frame buffer consoles for the
BIOS boot loader. Pull one or the other in with #ifdef in conf.c. Add
gfx_bios.c for the few routines that are needed for the BIOS support of
gfx. These are stubbed out for text-only mode. Move bi_load_vbe_data
here since it's only used for the graphical frame buffer.

Note: This setup also allows us to build multiple BIOS loaders if we
have to, some with text-only and some graphical. We don't do this today.
We may be forced to turn this on in the future if ZFS keeps growing.

The size savings is 41k, which helps a lot with some of our users that
want to enable more options in the BIOS boot loader than are normally
safe to do, and they don't need graphics.

Sponsored by: Netflix

Diff Detail

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