fix: 🐛 Add missing exception vectors start symbol

This commit is contained in:
Berkus Decker 2023-07-12 00:08:54 +03:00 committed by Berkus Decker
parent 5356de7cbb
commit 46d0c4cffc
2 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ SECTIONS
.vectors ALIGN(2048):
{
__EXCEPTION_VECTORS_START = .;
KEEP(*(.vectors))
}

View File

@ -86,11 +86,11 @@ fn init_mmu() {
fn init_exception_traps() {
extern "Rust" {
static __exception_vectors_start: UnsafeCell<()>;
static __EXCEPTION_VECTORS_START: UnsafeCell<()>;
}
unsafe {
arch::traps::set_vbar_el1_checked(__exception_vectors_start.get() as u64)
arch::traps::set_vbar_el1_checked(__EXCEPTION_VECTORS_START.get() as u64)
.expect("Vector table properly aligned!");
}
println!("[!] Exception traps set up");