git: 9b388ac30375 - main - loader: unload command should reset tg_kernel_supported in gfx_state
Toomas Soome
tsoome at FreeBSD.org
Thu Jan 28 07:52:51 UTC 2021
The branch main has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=9b388ac30375ad4e0259b264a006753edcb2bd3c
commit 9b388ac30375ad4e0259b264a006753edcb2bd3c
Author: Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-01-28 07:45:47 +0000
Commit: Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-01-28 07:52:20 +0000
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
---
stand/common/module.c | 2 ++
1 file changed, 2 insertions(+)
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);
More information about the dev-commits-src-main
mailing list