mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
broaded scope of conditional compilation
This commit is contained in:
parent
588e1cf9f1
commit
863f17652d
1 changed files with 1 additions and 1 deletions
|
|
@ -187,10 +187,10 @@ pub extern "C" fn trap_handler(
|
|||
let epc = sepc::read();
|
||||
|
||||
let ex = RiscvException::from_regs(sc.bits(), epc, stval::read());
|
||||
#[cfg(feature = "debug-print")]
|
||||
{
|
||||
let pid = current_pid();
|
||||
let ex = RiscvException::from_regs(sc.bits(), sepc::read(), stval::read());
|
||||
#[cfg(feature = "debug-print")]
|
||||
println!("IRQ -- KERNEL({}): RISC-V fault: {}", pid, ex);
|
||||
}
|
||||
match ex {
|
||||
|
|
|
|||
Loading…
Reference in a new issue