setglobalintmask OK (#299)

This commit is contained in:
EllipticEllipsis 2021-10-01 01:57:49 +01:00 committed by GitHub
parent b5e9427db4
commit edcf4e40cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
#include "global.h" #include "global.h"
#pragma GLOBAL_ASM("asm/non_matchings/boot/setglobalintmask/__osSetGlobalIntMask.s") void __osSetGlobalIntMask(u32 mask) {
register s32 prevInt = __osDisableInt();
__OSGlobalIntMask |= mask;
__osRestoreInt(prevInt);
}