forked from M-Labs/zynq-rs
experiments: update ps7_init for zc706
This commit is contained in:
parent
b33ccf83ba
commit
eea042e2ee
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,5 @@
|
|||
use libregister::RegisterR;
|
||||
use libcortex_a9::regs::{DFSR, MPIDR, CORE_MASK};
|
||||
use libboard_zynq::{println, slcr, stdio};
|
||||
|
||||
#[no_mangle]
|
||||
|
@ -14,7 +16,8 @@ pub unsafe extern "C" fn PrefetchAbort() {
|
|||
pub unsafe extern "C" fn DataAbort() {
|
||||
stdio::drop_uart();
|
||||
|
||||
println!("DataAbort");
|
||||
println!("DataAbort on core {}", MPIDR.read() & CORE_MASK);
|
||||
println!("DFSR: {:03X}", DFSR.read());
|
||||
|
||||
slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
|
||||
loop {}
|
||||
|
|
Loading…
Reference in New Issue