mirror of https://github.com/zeldaret/mm.git
sethwinterrupt OK (#301)
This commit is contained in:
parent
ef875bc221
commit
3098767688
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue