mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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")]
|
#[cfg(feature = "swap")]
|
||||||
RiscvException::InstructionPageFault(_pc, addr) => {
|
RiscvException::InstructionPageFault(_pc, addr) => {
|
||||||
#[cfg(all(feature = "debug-print", feature = "print-panics"))]
|
#[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)
|
crate::arch::mem::ensure_page_exists_inner(addr)
|
||||||
.map(|_new_page| {
|
.map(|_new_page| {
|
||||||
#[cfg(all(feature = "debug-print", feature = "print-panics"))]
|
#[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| {
|
ArchProcess::with_current_mut(|process| {
|
||||||
crate::arch::syscall::resume(current_pid().get() == 1, process.current_thread())
|
crate::arch::syscall::resume(current_pid().get() == 1, process.current_thread())
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue