sethwinterrupt OK (#301)

This commit is contained in:
EllipticEllipsis
2021-09-30 01:09:13 +01:00
committed by GitHub
parent ef875bc221
commit 3098767688
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -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);
}