Decompile __osSetGlobalIntMask

This commit is contained in:
Ryan Dwyer 2021-03-16 21:23:58 +10:00
parent 073c5e8d67
commit 7cd45e622c
2 changed files with 7 additions and 22 deletions

View File

@ -100,6 +100,7 @@ $(B_DIR)/lib/ultra/os/recvmesg.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/resetglobalintmask.o: OPT_LVL := -O1 $(B_DIR)/lib/ultra/os/resetglobalintmask.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/sendmesg.o: OPT_LVL := -O1 $(B_DIR)/lib/ultra/os/sendmesg.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/seteventmesg.o: OPT_LVL := -O1 $(B_DIR)/lib/ultra/os/seteventmesg.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/setglobalintmask.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/setthreadpri.o: OPT_LVL := -O1 $(B_DIR)/lib/ultra/os/setthreadpri.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/settimer.o: OPT_LVL := -O1 $(B_DIR)/lib/ultra/os/settimer.o: OPT_LVL := -O1
$(B_DIR)/lib/ultra/os/startthread.o: OPT_LVL := -O1 $(B_DIR)/lib/ultra/os/startthread.o: OPT_LVL := -O1

View File

@ -1,25 +1,9 @@
#include <libultra_internal.h> #include <libultra_internal.h>
#include "data.h" #include "data.h"
GLOBAL_ASM( void __osSetGlobalIntMask(OSHWIntr mask)
glabel __osSetGlobalIntMask {
/* 51bc0: 27bdffd8 */ addiu $sp,$sp,-40 register u32 saveMask = __osDisableInt();
/* 51bc4: afbf001c */ sw $ra,0x1c($sp) __osGlobalIntMask |= mask;
/* 51bc8: afa40028 */ sw $a0,0x28($sp) __osRestoreInt(saveMask);
/* 51bcc: 0c01256c */ jal __osDisableInt }
/* 51bd0: afb00018 */ sw $s0,0x18($sp)
/* 51bd4: 3c0e8006 */ lui $t6,%hi(__osGlobalIntMask)
/* 51bd8: 8dcecf70 */ lw $t6,%lo(__osGlobalIntMask)($t6)
/* 51bdc: 8faf0028 */ lw $t7,0x28($sp)
/* 51be0: 00408025 */ or $s0,$v0,$zero
/* 51be4: 3c018006 */ lui $at,%hi(__osGlobalIntMask)
/* 51be8: 01cfc025 */ or $t8,$t6,$t7
/* 51bec: ac38cf70 */ sw $t8,%lo(__osGlobalIntMask)($at)
/* 51bf0: 0c012588 */ jal __osRestoreInt
/* 51bf4: 02002025 */ or $a0,$s0,$zero
/* 51bf8: 8fbf001c */ lw $ra,0x1c($sp)
/* 51bfc: 8fb00018 */ lw $s0,0x18($sp)
/* 51c00: 27bd0028 */ addiu $sp,$sp,0x28
/* 51c04: 03e00008 */ jr $ra
/* 51c08: 00000000 */ nop
);