mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 16:06:30 +08:00
syntax
This commit is contained in:
parent
9f94bc61ae
commit
420891ba54
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user