From 7c58c0cf434f37504c62caa03c2c0d6b863da9bf Mon Sep 17 00:00:00 2001 From: morgan Date: Thu, 7 Mar 2024 12:26:28 +0800 Subject: [PATCH] abort: rename to exception_vectors --- experiments/src/main.rs | 4 ++-- libsupport_zynq/src/{abort.rs => exception_vectors.rs} | 0 libsupport_zynq/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename libsupport_zynq/src/{abort.rs => exception_vectors.rs} (100%) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index 0b2d950..cf86587 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::{ - abort, boot, ram, + boot, exception_vectors, ram, }; use log::{info, warn}; use core::sync::atomic::{AtomicBool, Ordering}; @@ -96,7 +96,7 @@ pub fn restart_core1() { #[no_mangle] pub fn main_core0() { - abort::set_vector_table(0x0); + exception_vectors::set_vector_table(0x0); // zynq::clocks::CpuClocks::enable_io(1_250_000_000); enable_l2_cache(0x8); println!("\nZynq experiments"); diff --git a/libsupport_zynq/src/abort.rs b/libsupport_zynq/src/exception_vectors.rs similarity index 100% rename from libsupport_zynq/src/abort.rs rename to libsupport_zynq/src/exception_vectors.rs diff --git a/libsupport_zynq/src/lib.rs b/libsupport_zynq/src/lib.rs index 9ab0ea0..2e6abf0 100644 --- a/libsupport_zynq/src/lib.rs +++ b/libsupport_zynq/src/lib.rs @@ -9,7 +9,7 @@ pub extern crate alloc; pub extern crate compiler_builtins; pub mod boot; -pub mod abort; +pub mod exception_vectors; #[cfg(feature = "panic_handler")] mod panic; pub mod ram;