fix(线程id判断有误,cmsis优先级创建修改): 线程id判断有误,cmsis优先级创建修改
线程id判断有误,cmsis优先级创建修改 Signed-off-by: LiteOS2021 <dinglu@huawei.com>
This commit is contained in:
parent
a42ba7aed6
commit
83b6331aad
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue