forked from M-Labs/zynq-rs
libboard_zc706::abort: soft_reset on PrefetchAbort/DataAbort
This commit is contained in:
parent
aae85981e2
commit
c900f57be8
@ -1,10 +1,12 @@
|
|||||||
use libboard_zynq::{println, stdio};
|
use libboard_zynq::{println, slcr, stdio};
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn PrefetchAbort() {
|
pub unsafe extern "C" fn PrefetchAbort() {
|
||||||
stdio::drop_uart();
|
stdio::drop_uart();
|
||||||
|
|
||||||
println!("PrefetchAbort");
|
println!("PrefetchAbort");
|
||||||
|
|
||||||
|
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13,5 +15,7 @@ pub unsafe extern "C" fn DataAbort() {
|
|||||||
stdio::drop_uart();
|
stdio::drop_uart();
|
||||||
|
|
||||||
println!("DataAbort");
|
println!("DataAbort");
|
||||||
|
|
||||||
|
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user