mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +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 epc = sepc::read();
|
||||||
|
|
||||||
let ex = RiscvException::from_regs(sc.bits(), epc, stval::read());
|
let ex = RiscvException::from_regs(sc.bits(), epc, stval::read());
|
||||||
|
#[cfg(feature = "debug-print")]
|
||||||
{
|
{
|
||||||
let pid = current_pid();
|
let pid = current_pid();
|
||||||
let ex = RiscvException::from_regs(sc.bits(), sepc::read(), stval::read());
|
let ex = RiscvException::from_regs(sc.bits(), sepc::read(), stval::read());
|
||||||
#[cfg(feature = "debug-print")]
|
|
||||||
println!("IRQ -- KERNEL({}): RISC-V fault: {}", pid, ex);
|
println!("IRQ -- KERNEL({}): RISC-V fault: {}", pid, ex);
|
||||||
}
|
}
|
||||||
match ex {
|
match ex {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue