mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
handler does not need to be public to be exposed
This commit is contained in:
parent
f1a2b76d28
commit
007d4d3ff8
|
@ -93,7 +93,7 @@ static mut INTERRUPT_TABLE: [InterruptRoot; 14] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
#[no_mangle]
|
#[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() } {
|
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();
|
||||||
|
|
Loading…
Reference in a new issue