2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 16:06:30 +08:00
This commit is contained in:
Sebastien Bourdeauducq 2021-08-12 13:01:35 +08:00
parent 9f94bc61ae
commit 420891ba54

View File

@ -262,7 +262,7 @@ pub extern fn exception(vect: u32, _regs: *const u32, pc: u32, ea: u32) {
let vect = irq::Exception::try_from(vect).expect("unknown exception"); let vect = irq::Exception::try_from(vect).expect("unknown exception");
match vect { match vect {
irq::Exception::Interrupt => irq::Exception::Interrupt =>
panic!("spurious irq {}", irq::pending_mask().trailing_zeros()) panic!("spurious irq {}", irq::pending_mask().trailing_zeros()),
_ => { _ => {
fn hexdump(addr: u32) { fn hexdump(addr: u32) {
let addr = (addr - addr % 4) as *const u32; let addr = (addr - addr % 4) as *const u32;