git: debcf835b16b - stable/13 - loader: unload command should reset tg_kernel_supported in gfx_state
Toomas Soome
tsoome at FreeBSD.org
Tue Feb 23 07:27:59 UTC 2021
The branch stable/13 has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=debcf835b16be30b51ec8bc0951ec0af79036074
commit debcf835b16be30b51ec8bc0951ec0af79036074
Author: Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-01-28 07:45:47 +0000
Commit: Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-02-21 20:32:14 +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
(cherry picked from commit 9b388ac30375ad4e0259b264a006753edcb2bd3c)
---
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-all
mailing list