From 9005b733167f30c806ac4fc30dc3050426e1724f Mon Sep 17 00:00:00 2001 From: morgan Date: Wed, 6 Mar 2024 16:01:16 +0800 Subject: [PATCH] experiment: add set_vector_table example --- experiments/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index 41278aa..0b2d950 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -39,7 +39,7 @@ use libcortex_a9::{ }; use libregister::{RegisterR, RegisterW}; use libsupport_zynq::{ - boot, ram, + abort, boot, ram, }; use log::{info, warn}; use core::sync::atomic::{AtomicBool, Ordering}; @@ -96,6 +96,7 @@ pub fn restart_core1() { #[no_mangle] pub fn main_core0() { + abort::set_vector_table(0x0); // zynq::clocks::CpuClocks::enable_io(1_250_000_000); enable_l2_cache(0x8); println!("\nZynq experiments");