Skip to content

Commit

Permalink
Merge pull request ps2dev#520 from Ziemas/threadman-fixes2
Browse files Browse the repository at this point in the history
threadman: Fix a typo and a bug
  • Loading branch information
uyjulian authored Jan 29, 2024
2 parents 701ab24 + 746571a commit 6f160a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iop/system/threadman/src/thbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ int WakeupThread(int thid)
return thread_start(thread, state);
}

thread->wakeup_count--;
thread->wakeup_count++;

CpuResumeIntr(state);

Expand Down
2 changes: 1 addition & 1 deletion iop/system/threadman/src/thmsgbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int CreateMbx(iop_mbx_t *mbx_param)
return KE_ILLEGAL_CONTEXT;
}

if (mbx_param->attr & ~(MBA_MSFIFO | MBA_THPRI | MBA_MSFIFO | MBA_MSPRI)) {
if (mbx_param->attr & ~(MBA_THFIFO | MBA_THPRI | MBA_MSFIFO | MBA_MSPRI)) {
return KE_ILLEGAL_ATTR;
}

Expand Down

0 comments on commit 6f160a0

Please sign in to comment.