mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
improve debug output
This commit is contained in:
parent
5f425ebc56
commit
39a427e1b0
1 changed files with 2 additions and 2 deletions
|
|
@ -376,11 +376,11 @@ pub extern "C" fn trap_handler(
|
|||
#[cfg(feature = "swap")]
|
||||
RiscvException::InstructionPageFault(_pc, addr) => {
|
||||
#[cfg(all(feature = "debug-print", feature = "print-panics"))]
|
||||
println!("KERNEL({}): RISC-V fault: {} @ {:08x}, addr {:08x} - ", pid, ex, _pc, addr);
|
||||
println!("IPF swap KERNEL({}): RISC-V fault: {} @ {:08x}, addr {:08x} - ", pid, ex, _pc, addr);
|
||||
crate::arch::mem::ensure_page_exists_inner(addr)
|
||||
.map(|_new_page| {
|
||||
#[cfg(all(feature = "debug-print", feature = "print-panics"))]
|
||||
klog!("Handing page {:08x} to process", _new_page);
|
||||
println!("Handing page {:08x} to process", _new_page);
|
||||
ArchProcess::with_current_mut(|process| {
|
||||
crate::arch::syscall::resume(current_pid().get() == 1, process.current_thread())
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue