git: 8305d6906fe9 - releng/13.0 - loader: unload command should reset tg_kernel_supported in gfx_state

Toomas Soome tsoome at FreeBSD.org
Wed Feb 24 18:39:06 UTC 2021


The branch releng/13.0 has been updated by tsoome:

URL: https://cgit.FreeBSD.org/src/commit/?id=8305d6906fe983ae470184127b5e42cc6f91493a

commit 8305d6906fe983ae470184127b5e42cc6f91493a
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-23 07:42:26 +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.
    
    (cherry picked from commit 9b388ac30375ad4e0259b264a006753edcb2bd3c)
    
    Reported by: jhb
    Approved by: re (gjb)
---
 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-branches mailing list