aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2021-01-28 07:45:47 +0000
committerToomas Soome <tsoome@FreeBSD.org>2021-01-28 07:52:20 +0000
commit9b388ac30375ad4e0259b264a006753edcb2bd3c (patch)
treefed0da8279be11a889f866c2405b12c437881038
parent0e01ea872ee475d7aef11d21588504e2ef4eb32c (diff)
downloadsrc-9b388ac30375ad4e0259b264a006753edcb2bd3c.tar.gz
src-9b388ac30375ad4e0259b264a006753edcb2bd3c.zip
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
-rw-r--r--stand/common/module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stand/common/module.c b/stand/common/module.c
index 247fc54b6021..34ffc10cded3 100644
--- a/stand/common/module.c
+++ b/stand/common/module.c
@@ -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);