use export name

This commit is contained in:
Corwin 2024-09-22 16:20:18 +01:00
parent 56e3de3c62
commit 051d9ab85d
No known key found for this signature in database

View file

@ -141,7 +141,8 @@ static mut INTERRUPT_TABLE: [InterruptRoot; 14] = [
]; ];
#[no_mangle] #[no_mangle]
extern "C" fn __RUST_INTERRUPT_HANDLER(interrupt: u16) -> u16 { #[export_name = "__RUST_INTERRUPT_HANDLER"]
extern "C" fn interrupt_handler(interrupt: u16) -> u16 {
for (i, root) in unsafe { INTERRUPT_TABLE.iter().enumerate() } { for (i, root) in unsafe { INTERRUPT_TABLE.iter().enumerate() } {
if (1 << i) & interrupt != 0 { if (1 << i) & interrupt != 0 {
root.trigger_interrupts(); root.trigger_interrupts();