mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
loader: unload command should reset tg_kernel_supported in gfx_state
While loading kernel, we check if vt/vbe backend support is included in
kernel and set the tg_kernel_supported flag in gfx_state. unload
command needs to reset this flag to allow next load to perform
this check with new kernel.
Reported by: jhb
(cherry picked from commit 9b388ac303
)
This commit is contained in:
parent
1714029b8a
commit
debcf835b1
@ -271,6 +271,8 @@ unload(void)
|
||||
}
|
||||
loadaddr = 0;
|
||||
unsetenv("kernelname");
|
||||
/* Reset tg_kernel_supported to allow next load to check it again. */
|
||||
gfx_state.tg_kernel_supported = false;
|
||||
}
|
||||
|
||||
COMMAND_SET(unload, "unload", "unload all modules", command_unload);
|
||||
|
Loading…
Reference in New Issue
Block a user