Skip to content

Commit 6f160a0

Browse files
authored
Merge pull request #520 from Ziemas/threadman-fixes2
threadman: Fix a typo and a bug
2 parents 701ab24 + 746571a commit 6f160a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

iop/system/threadman/src/thbase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ int WakeupThread(int thid)
763763
return thread_start(thread, state);
764764
}
765765

766-
thread->wakeup_count--;
766+
thread->wakeup_count++;
767767

768768
CpuResumeIntr(state);
769769

iop/system/threadman/src/thmsgbx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int CreateMbx(iop_mbx_t *mbx_param)
1515
return KE_ILLEGAL_CONTEXT;
1616
}
1717

18-
if (mbx_param->attr & ~(MBA_MSFIFO | MBA_THPRI | MBA_MSFIFO | MBA_MSPRI)) {
18+
if (mbx_param->attr & ~(MBA_THFIFO | MBA_THPRI | MBA_MSFIFO | MBA_MSPRI)) {
1919
return KE_ILLEGAL_ATTR;
2020
}
2121

0 commit comments

Comments
 (0)