osSpTaskYielded.c (380B)
1 #include "libultra_internal.h" 2 3 OSYieldResult osSpTaskYielded(OSTask *task) { 4 s32 status; 5 u32 int_disabledult; 6 status = __osSpGetStatus(); 7 int_disabledult = (status & SPSTATUS_SIGNAL1_SET) != 0 ? 1 : 0; 8 if (status & SPSTATUS_SIGNAL0_SET) { 9 task->t.flags |= int_disabledult; 10 task->t.flags &= ~(M_TASK_FLAG1); 11 } 12 return int_disabledult; 13 }