Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 2021 07:27:59 GMT
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: debcf835b16b - stable/13 - loader: unload command should reset tg_kernel_supported in gfx_state
Message-ID:  <202102230727.11N7RxHg004508@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by tsoome:

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

commit debcf835b16be30b51ec8bc0951ec0af79036074
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-01-28 07:45:47 +0000
Commit:     Toomas Soome <tsoome@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102230727.11N7RxHg004508>