From 47dd23b1e1b8030cc125a01a9a0969e589becfac Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 20 Mar 2026 15:50:00 +0800 Subject: [PATCH] remove a page table dump cleans up boot log slightly; slightly improves screen-up time --- loader/src/phase2.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loader/src/phase2.rs b/loader/src/phase2.rs index 07e39d41d..987a86ab1 100644 --- a/loader/src/phase2.rs +++ b/loader/src/phase2.rs @@ -330,7 +330,9 @@ pub fn phase_2(cfg: &mut BootConfig, env_variables: EnvVariables) { } #[cfg(all(feature = "debug-print", not(feature = "verilator-only")))] // print the kernel's page table mappings as a sanity check on the loader - debug::print_pagetable(cfg.processes[0].satp); + if VDBG { + debug::print_pagetable(cfg.processes[0].satp); + } // Mark pages used by suspend/resume, otherwise they will be handed out to userspace. // However, when not doing suspend/resume, it's safe to hand this out because it's always zeroized