experiments: enabled L2 cache

...and removed some trailing spaces
master
pca006132 2020-08-20 11:57:47 +08:00
parent 7cb2669c3b
commit a1f859637a
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();