HomeFreeBSD

Fix loader detection of vbefb support on !amd64

Description

Fix loader detection of vbefb support on !amd64

On i386, after 6c7a932d0b8baaaee16eca0ba061bfa6e0e57bfd, the vbefb vt
driver was no longer detected by the loader, if any kernel module was
loaded after the kernel itself.

This was caused by the parse_vt_drv_set() function being called multiple
times, resetting the detection flag. (It was called multiple times,
becuase i386 .ko files are shared objects like the kernel proper, while
this is not the case on amd64.)

Fix this by skipping the set_vt_drv_set lookup if vbefb was already
detected.

Reviewed by: tsoome
(cherry picked from commit 6e26189be406a9a3799074b16925e6cd63cc703b)

Details

Provenance
dimAuthored on Jan 27 2021, 9:28 PM
tsoomeCommitted on Feb 21 2021, 8:31 PM
Parents
rGb7f1582221f5: loader: start kernel in text mode when there is no vbefb vt driver
Branches
Unknown
Tags
Unknown