mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-17 23:01:00 -04:00
sethwinterrupt OK (#301)
This commit is contained in:
+1
-1
@@ -479,7 +479,7 @@ void* osViGetCurrentFramebuffer(void);
|
||||
s32 __osSpSetPc(void* data);
|
||||
// void __osVoiceContWrite4(void);
|
||||
void __osGetHWIntrRoutine(s32 idx, OSMesgQueue** outQueue, OSMesg* outMsg);
|
||||
// void __osSetHWIntrRoutine(void);
|
||||
void __osSetHWIntrRoutine(s32 idx, OSMesgQueue* queue, OSMesg msg);
|
||||
u32 __osGetWatchLo(void);
|
||||
void __osSetWatchLo(u32 value);
|
||||
f32 fmodf(f32 dividend, f32 divisor);
|
||||
|
||||
@@ -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