L2 cache #64

Merged
sb10q merged 1 commits from pca006132/zynq-rs:l2-cache into master 2020-08-20 17:18:36 +08:00
1 changed files with 5 additions and 3 deletions

View File

@ -27,6 +27,7 @@ use libboard_zynq::{
};
use libcortex_a9::{
mutex::Mutex,
l2c::enable_l2_cache,
sync_channel::{Sender, Receiver},
sync_channel,
regs::{MPIDR, SP},
@ -86,6 +87,7 @@ pub fn restart_core1() {
#[no_mangle]
pub fn main_core0() {
// zynq::clocks::CpuClocks::enable_io(1_250_000_000);
enable_l2_cache();
println!("\nzc706 main");
let mut interrupt_controller = gic::InterruptController::gic(mpcore::RegisterBlock::mpcore());
interrupt_controller.enable_interrupts();