mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
use export name
This commit is contained in:
parent
56e3de3c62
commit
051d9ab85d
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue