mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-18 13:13:22 -04:00
sethwinterrupt OK (#301)
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#include "global.h"
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/boot/sethwinterrupt/__osSetHWIntrRoutine.s")
|
||||
void __osSetHWIntrRoutine(s32 idx, OSMesgQueue* queue, OSMesg msg) {
|
||||
register s32 prevInt = __osDisableInt();
|
||||
|
||||
__osHwIntTable[idx].queue = queue;
|
||||
__osHwIntTable[idx].msg = msg;
|
||||
|
||||
__osRestoreInt(prevInt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user