summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-08-02 23:28:47 +0200
committersalmonik <salmonik@tuta.io>2026-08-02 23:28:47 +0200
commit62e5a368819f74d42d31c173f68cc1ddb9dd1a90 (patch)
treecbb8923742f05f049a627d882f3fdb216ef935f1
parentv0.5.7: drop test-poison hooks; vt heap-struct verify at shell entry (diff)
downloadrs-dos-62e5a368819f74d42d31c173f68cc1ddb9dd1a90.tar.gz
rs-dos-62e5a368819f74d42d31c173f68cc1ddb9dd1a90.zip
v0.5.7: vt verify also as a boot marker (real hardware has no serial)
-rw-r--r--rsnix/src/vt.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/rsnix/src/vt.rs b/rsnix/src/vt.rs
index 6343b78..2d8ece6 100644
--- a/rsnix/src/vt.rs
+++ b/rsnix/src/vt.rs
@@ -174,8 +174,20 @@ pub fn debug_verify() {
174 .unwrap_or(false); 174 .unwrap_or(false);
175 if c.len() != total || r.len() != total || !heap_ok { 175 if c.len() != total || r.len() != total || !heap_ok {
176 msg("verify: FAILED — cells/rendered not sane at shell entry"); 176 msg("verify: FAILED — cells/rendered not sane at shell entry");
177 crate::gop::boot_marker(&alloc::format!(
178 "vt: cells {:#x} {}/{} FAILED",
179 c.as_ptr() as usize,
180 c.len(),
181 total
182 ));
177 } else { 183 } else {
178 msg("verify: ok"); 184 msg("verify: ok");
185 crate::gop::boot_marker(&alloc::format!(
186 "vt: cells {:#x} {}/{} ok",
187 c.as_ptr() as usize,
188 c.len(),
189 total
190 ));
179 } 191 }
180 } 192 }
181} 193}