mirror of https://github.com/zeldaret/mm.git
resetglobalintmask OK (#298)
This commit is contained in:
parent
fbd1a79942
commit
48b91053ee
|
|
@ -1,3 +1,8 @@
|
|||
#include "global.h"
|
||||
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/boot/resetglobalintmask/__osResetGlobalIntMask.s")
|
||||
void __osResetGlobalIntMask(u32 mask) {
|
||||
register s32 prevInt = __osDisableInt();
|
||||
|
||||
__OSGlobalIntMask &= ~(mask & ~0x401);
|
||||
__osRestoreInt(prevInt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue