HomeFreeBSD

loader: narrow the scope of gfx frame buffer wrt tg supported kernels

Description

loader: narrow the scope of gfx frame buffer wrt tg supported kernels

Store whether or not we found a vbefb module (eg, a tg supported kernel)
in the preloaded_file structure. This automatically resets on reload and
eliminates load_elf knowing about any gfx_* interface. Restrict this to
i386, which is the only place it's used. Update libi386 to check in the
preloaded_file struct. Eliminate this from the teken_gfx
structure. Rewrite the parsing code to be more inline. Check this from
the same place we check for a relocatable amd64 kernel.

Sponsored by: Netflix
Reviewed by: manu, tsoome
Differential Revision: https://reviews.freebsd.org/D33427

(cherry picked from commit aaaa5a2e68e256101c9737c30ad142f1c3f05131)

Details

Provenance
impAuthored on Dec 14 2021, 9:38 PM
Reviewer
manu
Differential Revision
D33427: loader: narrow the scope of gfx frame buffer wrt tg supported kernels
Parents
rGda2a6a5cee01: loader/kboot: minor style nit
Branches
Unknown
Tags
Unknown