forked from M-Labs/zynq-rs
1
0
Fork 0

experiment: add set_vector_table example

This commit is contained in:
morgan 2024-03-06 16:01:16 +08:00
parent b1994dbe16
commit 9005b73316
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ use libcortex_a9::{
}; };
use libregister::{RegisterR, RegisterW}; use libregister::{RegisterR, RegisterW};
use libsupport_zynq::{ use libsupport_zynq::{
boot, ram, abort, boot, ram,
}; };
use log::{info, warn}; use log::{info, warn};
use core::sync::atomic::{AtomicBool, Ordering}; use core::sync::atomic::{AtomicBool, Ordering};
@ -96,6 +96,7 @@ pub fn restart_core1() {
#[no_mangle] #[no_mangle]
pub fn main_core0() { pub fn main_core0() {
abort::set_vector_table(0x0);
// zynq::clocks::CpuClocks::enable_io(1_250_000_000); // zynq::clocks::CpuClocks::enable_io(1_250_000_000);
enable_l2_cache(0x8); enable_l2_cache(0x8);
println!("\nZynq experiments"); println!("\nZynq experiments");