fix: 🐛 Add missing exception vectors start symbol
This commit is contained in:
		
							parent
							
								
									5356de7cbb
								
							
						
					
					
						commit
						46d0c4cffc
					
				|  | @ -32,6 +32,7 @@ SECTIONS | ||||||
| 
 | 
 | ||||||
|     .vectors ALIGN(2048): |     .vectors ALIGN(2048): | ||||||
|     { |     { | ||||||
|  |         __EXCEPTION_VECTORS_START = .; | ||||||
|         KEEP(*(.vectors)) |         KEEP(*(.vectors)) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -86,11 +86,11 @@ fn init_mmu() { | ||||||
| 
 | 
 | ||||||
| fn init_exception_traps() { | fn init_exception_traps() { | ||||||
|     extern "Rust" { |     extern "Rust" { | ||||||
|         static __exception_vectors_start: UnsafeCell<()>; |         static __EXCEPTION_VECTORS_START: UnsafeCell<()>; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     unsafe { |     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!"); |             .expect("Vector table properly aligned!"); | ||||||
|     } |     } | ||||||
|     println!("[!] Exception traps set up"); |     println!("[!] Exception traps set up"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue