diff --git a/kal/posix/src/pthread.c b/kal/posix/src/pthread.c index 37296c6e..9da1dfc5 100644 --- a/kal/posix/src/pthread.c +++ b/kal/posix/src/pthread.c @@ -82,7 +82,7 @@ static void *PthreadEntry(UINT32 param) static inline bool IsPthread(pthread_t thread) { LosTaskCB *tcb = NULL; - if ((UINT32)thread >= LOSCFG_BASE_CORE_TSK_LIMIT) { + if ((UINT32)thread > LOSCFG_BASE_CORE_TSK_LIMIT) { return false; } tcb = OS_TCB_FROM_TID((UINT32)thread); diff --git a/testsuites/sample/cmsis/cmsis_func_test.c b/testsuites/sample/cmsis/cmsis_func_test.c index d1fcf94e..f9aa29b9 100644 --- a/testsuites/sample/cmsis/cmsis_func_test.c +++ b/testsuites/sample/cmsis/cmsis_func_test.c @@ -66,7 +66,7 @@ LITE_TEST_CASE(CmsisFuncTestSuite, TestCmsis001, Function | MediumTest | Level1) attr.stack_mem = stackAddr; attr.stack_size = OS_TSK_TEST_STACK_SIZE; - attr.priority = osPriorityNormal; + attr.priority = osPriorityNormal + 1; attr.attr_bits = osThreadDetached; threadId = osThreadNew((osThreadFunc_t)CmsisStackFunc01, NULL, &attr); ICUNIT_GOTO_NOT_EQUAL(threadId, 0, threadId, EXIT);