From b129d3e0df500a50e33a62cc1738559ca5913ff4 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 25 Jun 2020 01:27:23 +0200 Subject: [PATCH] panic: fix CORE_MASK --- libsupport_zynq/src/abort.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsupport_zynq/src/abort.rs b/libsupport_zynq/src/abort.rs index 0add6da..e73d827 100644 --- a/libsupport_zynq/src/abort.rs +++ b/libsupport_zynq/src/abort.rs @@ -1,5 +1,5 @@ use libregister::RegisterR; -use libcortex_a9::regs::{DFSR, MPIDR, CORE_MASK}; +use libcortex_a9::regs::{DFSR, MPIDR}; use libboard_zynq::{println, slcr, stdio}; #[no_mangle] @@ -16,6 +16,7 @@ pub unsafe extern "C" fn PrefetchAbort() { pub unsafe extern "C" fn DataAbort() { stdio::drop_uart(); + const CORE_MASK: u32 = 0x3; println!("DataAbort on core {}", MPIDR.read() & CORE_MASK); println!("DFSR: {:03X}", DFSR.read());