1
0
Fork 0

experiments: update ps7_init for zc706

This commit is contained in:
Astro 2020-06-24 22:23:05 +02:00
parent b33ccf83ba
commit eea042e2ee
2 changed files with 3988 additions and 102 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,5 @@
use libregister::RegisterR;
use libcortex_a9::regs::{DFSR, MPIDR, CORE_MASK};
use libboard_zynq::{println, slcr, stdio}; use libboard_zynq::{println, slcr, stdio};
#[no_mangle] #[no_mangle]
@ -14,7 +16,8 @@ pub unsafe extern "C" fn PrefetchAbort() {
pub unsafe extern "C" fn DataAbort() { pub unsafe extern "C" fn DataAbort() {
stdio::drop_uart(); 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()); slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset());
loop {} loop {}