handler does not need to be public to be exposed

This commit is contained in:
Corwin Kuiper 2021-06-27 02:36:47 +01:00
parent f1a2b76d28
commit 007d4d3ff8

View file

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