From c0b1ab452e821841a72d5c56bd494e949ac58ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=88=CE=BB=CE=BB=CE=B5=CE=BD=20=CE=95=CE=BC=CE=AF=CE=BB?= =?UTF-8?q?=CE=B9=CE=B1=20=CE=86=CE=BD=CE=BD=CE=B1=20Zscheile?= Date: Wed, 12 Aug 2026 16:35:19 +0200 Subject: [PATCH] fix(vga): compilation with `feature = "uhyve"` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Martin Kröning --- src/arch/x86_64/kernel/vga.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/kernel/vga.rs b/src/arch/x86_64/kernel/vga.rs index f3825fca51..d7b8dd8de4 100644 --- a/src/arch/x86_64/kernel/vga.rs +++ b/src/arch/x86_64/kernel/vga.rs @@ -134,7 +134,10 @@ impl VgaScreen { pub fn init() { #[cfg(feature = "uhyve")] - if crate::env::is_uhyve() { + use crate::env::{self, UhyveStartInfo}; + + #[cfg(feature = "uhyve")] + if env::start_info().is_uhyve() { return; }