From a459dd3fb267bfba24c3fad1e3dc789bf50ee20b Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 2 Aug 2026 16:06:40 +0200 Subject: v0.5.6: fault dumps carry kernel image base + stack backtrace - fault_dump prints img= (kernel image base) on the serial line and the on-screen band, so a real-hardware repro can be resolved against the PDB without serial - backtrace: rbp-chain walk then a raw scan of the stack above the interrupted rsp; both filter to the .text range (PE-header parse via memory::text_range) so only code addresses are collected - on-screen boot marker shows the kernel image range at every boot - crash.log now records img= + bt= lines alongside rip/rsp --- rsdos/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rsdos/src') diff --git a/rsdos/src/main.rs b/rsdos/src/main.rs index 4fe89c9..60acc4e 100644 --- a/rsdos/src/main.rs +++ b/rsdos/src/main.rs @@ -197,6 +197,14 @@ pub unsafe extern "efiapi" fn efi_main(image_handle: Handle, system_table: *mut cols, rows )); + if let Some((ib, ie)) = rsnix::memory::kernel_image_range() { + rsnix::gop::boot_marker(&alloc::format!( + "rsnix: img 0x{:x}-0x{:x} ({} KiB)", + ib, + ie, + (ie - ib) / 1024 + )); + } // ExitBootServices — we now own the machine if unsafe { (bs.exit_boot_services)(image_handle, map_key) } != EFI_SUCCESS { -- cgit v1.2.3