/kernel/liteos_a/kernel/base/sched/ |
D | los_sched.c | 96 LosTaskCB *runTask = OsCurrTaskGet(); in OsSchedExpireTimeUpdate() local 98 UINT64 deadline = runTask->ops->deadlineGet(runTask); in OsSchedExpireTimeUpdate() 100 SchedNextExpireTimeSet(runTask->taskID, deadline, runTask->taskID); in OsSchedExpireTimeUpdate() 344 STATIC VOID TaskStackCheck(LosTaskCB *runTask, LosTaskCB *newTask) in TaskStackCheck() argument 346 if (!OS_STACK_MAGIC_CHECK(runTask->topOfStack)) { in TaskStackCheck() 347 LOS_Panic("CURRENT task ID: %s:%d stack overflow!\n", runTask->taskName, runTask->taskID); in TaskStackCheck() 358 STATIC INLINE VOID SchedSwitchCheck(LosTaskCB *runTask, LosTaskCB *newTask) in SchedSwitchCheck() argument 361 TaskStackCheck(runTask, newTask); in SchedSwitchCheck() 363 OsHookCall(LOS_HOOK_TYPE_TASK_SWITCHEDIN, newTask, runTask); in SchedSwitchCheck() 366 STATIC VOID SchedTaskSwitch(SchedRunqueue *rq, LosTaskCB *runTask, LosTaskCB *newTask) in SchedTaskSwitch() argument [all …]
|
D | los_priority.c | 50 STATIC UINT32 HPFWait(LosTaskCB *runTask, LOS_DL_LIST *list, UINT32 ticks); 54 STATIC UINT32 HPFDelay(LosTaskCB *runTask, UINT64 waitTime); 55 STATIC VOID HPFYield(LosTaskCB *runTask); 282 STATIC VOID HPFYield(LosTaskCB *runTask) in HPFYield() argument 285 runTask->timeSlice = 0; in HPFYield() 287 runTask->startTime = OsGetCurrSchedTimeCycle(); in HPFYield() 288 HPFEnqueue(rq, runTask); in HPFYield() 292 STATIC UINT32 HPFDelay(LosTaskCB *runTask, UINT64 waitTime) in HPFDelay() argument 294 runTask->taskStatus |= OS_TASK_STATUS_DELAY; in HPFDelay() 295 runTask->waitTime = waitTime; in HPFDelay() [all …]
|
D | los_idle.c | 36 STATIC UINT32 IdleWait(LosTaskCB *runTask, LOS_DL_LIST *list, UINT32 ticks); 39 STATIC VOID IdleYield(LosTaskCB *runTask); 101 STATIC VOID IdleYield(LosTaskCB *runTask) in IdleYield() argument 103 (VOID)runTask; in IdleYield() 107 STATIC UINT32 IdleWait(LosTaskCB *runTask, LOS_DL_LIST *list, UINT32 ticks) in IdleWait() argument 109 (VOID)runTask; in IdleWait()
|
/kernel/liteos_a/kernel/base/ipc/ |
D | los_mux.c | 260 STATIC VOID OsMuxBitmapSet(const LosMux *mutex, const LosTaskCB *runTask) in OsMuxBitmapSet() argument 268 INT32 ret = OsSchedParamCompare(owner, runTask); in OsMuxBitmapSet() 270 runTask->ops->schedParamGet(runTask, ¶m); in OsMuxBitmapSet() 275 VOID OsMuxBitmapRestore(const LosMux *mutex, const LOS_DL_LIST *list, const LosTaskCB *runTask) in OsMuxBitmapRestore() argument 283 runTask->ops->schedParamGet(runTask, ¶m); in OsMuxBitmapRestore() 287 STATIC UINT32 OsMuxPendOp(LosTaskCB *runTask, LosMux *mutex, UINT32 timeout) in OsMuxPendOp() argument 300 mutex->owner = (VOID *)runTask; in OsMuxPendOp() 301 LOS_ListTailInsert(&runTask->lockList, &mutex->holdList); in OsMuxPendOp() 304 runTask->ops->schedParamGet(runTask, ¶m); in OsMuxPendOp() 306 runTask->ops->priorityInheritance(runTask, ¶m); in OsMuxPendOp() [all …]
|
D | los_rwlock.c | 110 LosTaskCB *runTask = (LosTaskCB *)OsCurrTaskGet(); in OsRwlockCheck() local 111 if (runTask->taskStatus & OS_TASK_FLAG_SYSTEM_TASK) { in OsRwlockCheck() 118 STATIC BOOL OsRwlockPriCompare(LosTaskCB *runTask, LOS_DL_LIST *rwList) in OsRwlockPriCompare() argument 122 if (OsSchedParamCompare(runTask, highestTask) < 0) { in OsRwlockPriCompare() 130 STATIC UINT32 OsRwlockRdPendOp(LosTaskCB *runTask, LosRwlock *rwlock, UINT32 timeout) in OsRwlockRdPendOp() argument 139 if (OsRwlockPriCompare(runTask, &(rwlock->writeList))) { in OsRwlockRdPendOp() 157 if ((LosTaskCB *)(rwlock->writeOwner) == runTask) { in OsRwlockRdPendOp() 165 LOS_DL_LIST *node = OsSchedLockPendFindPos(runTask, &(rwlock->readList)); in OsRwlockRdPendOp() 166 ret = runTask->ops->wait(runTask, node, timeout); in OsRwlockRdPendOp() 174 STATIC UINT32 OsRwlockWrPendOp(LosTaskCB *runTask, LosRwlock *rwlock, UINT32 timeout) in OsRwlockWrPendOp() argument [all …]
|
D | los_event.c | 108 LosTaskCB *runTask = NULL; in OsEventReadCheck() local 118 runTask = OsCurrTaskGet(); in OsEventReadCheck() 119 if (runTask->taskStatus & OS_TASK_FLAG_SYSTEM_TASK) { in OsEventReadCheck() 130 LosTaskCB *runTask = OsCurrTaskGet(); in OsEventReadImp() local 146 runTask->eventMask = eventMask; in OsEventReadImp() 147 runTask->eventMode = mode; in OsEventReadImp() 148 runTask->taskEvent = eventCB; in OsEventReadImp() 150 ret = runTask->ops->wait(runTask, &eventCB->stEventList, timeout); in OsEventReadImp()
|
D | los_sem.c | 183 LosTaskCB *runTask = NULL; in LOS_SemPend() local 195 runTask = OsCurrTaskGet(); in LOS_SemPend() 196 if (runTask->taskStatus & OS_TASK_FLAG_SYSTEM_TASK) { in LOS_SemPend() 212 OsHookCall(LOS_HOOK_TYPE_SEM_PEND, semPended, runTask, timeout); in LOS_SemPend() 226 OsHookCall(LOS_HOOK_TYPE_SEM_PEND, semPended, runTask, timeout); in LOS_SemPend() 228 retErr = runTask->ops->wait(runTask, &semPended->semList, timeout); in LOS_SemPend()
|
/kernel/liteos_m/kernel/src/ |
D | los_sched.c | 123 LosTaskCB *runTask = g_losTask.runTask; in OsSchedUpdateExpireTime() local 132 if ((runTask->taskID != g_idleTaskID) && !isPmMode) { in OsSchedUpdateExpireTime() 133 …INT32 timeSlice = (runTask->timeSlice <= g_schedTimeSliceMin) ? g_schedTimeSlice : runTask->timeSl… in OsSchedUpdateExpireTime() 134 endTime = runTask->startTime + timeSlice; in OsSchedUpdateExpireTime() 138 OsSchedSetNextExpireTime(runTask->taskID, endTime); in OsSchedUpdateExpireTime() 273 LosTaskCB *runTask = g_losTask.runTask; in OsSchedYield() local 275 runTask->timeSlice = 0; in OsSchedYield() 278 VOID OsSchedDelay(LosTaskCB *runTask, UINT32 tick) in OsSchedDelay() argument 280 runTask->taskStatus |= OS_TASK_STATUS_DELAY; in OsSchedDelay() 281 runTask->waitTimes = tick; in OsSchedDelay() [all …]
|
D | los_task.c | 431 g_losTask.runTask = &g_taskCBArray[g_taskMaxNum]; in OsTaskInit() 432 g_losTask.runTask->taskID = index; in OsTaskInit() 433 g_losTask.runTask->taskStatus = (OS_TASK_STATUS_UNUSED | OS_TASK_STATUS_RUNNING); in OsTaskInit() 434 g_losTask.runTask->priority = OS_TASK_PRIORITY_LOWEST + 1; in OsTaskInit() 476 if (g_losTask.runTask == NULL) { in LOS_CurTaskIDGet() 479 return g_losTask.runTask->taskID; in LOS_CurTaskIDGet() 509 if (g_losTask.runTask != NULL) { in LOS_CurTaskNameGet() 510 taskName = g_losTask.runTask->taskName; in LOS_CurTaskNameGet() 528 g_losTask.runTask->taskName, g_losTask.runTask->taskID); in OsHandleRunTaskStackOverflow() 552 tmp = g_losTask.runTask; in OsHandleNewTaskStackOverflow() [all …]
|
/kernel/liteos_m/testsuites/sample/kernel/mux/ |
D | It_los_mutex_026.c | 54 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 79 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 142 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 153 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase() 170 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
D | It_los_mutex_027.c | 53 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 74 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 119 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 145 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
D | It_los_mutex_033.c | 52 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncC() 73 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 8, g_losTask.runTask->priority); in TaskFuncB() 119 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 151 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
D | It_los_mutex_034.c | 54 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncC() 75 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 8, g_losTask.runTask->priority); in TaskFuncB() 117 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 148 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
D | It_los_mutex_030.c | 52 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 68 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 119 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 146 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
D | It_los_mutex_029.c | 53 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 2, g_losTask.runTask->priority); in TaskFuncD() 74 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncC() 125 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 154 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
D | It_los_mutex_031.c | 52 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 71 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 122 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 158 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase()
|
/kernel/liteos_m/components/security/syscall/ |
D | pthread_syscall.c | 110 LosTaskCB *runTask = g_losTask.runTask; in SysSetThreadArea() local 111 OsGetUserTaskCB(runTask->taskID)->userArea = (unsigned long)(uintptr_t)area; in SysSetThreadArea() 122 LosTaskCB *runTask = g_losTask.runTask; in SysGetThreadArea() local 123 area = (char *)OsGetUserTaskCB(runTask->taskID)->userArea; in SysGetThreadArea()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_task.c | 149 LosTaskCB *runTask = OsCurrTaskGet(); in OsTaskJoinPendUnsafe() local 150 return runTask->ops->wait(runTask, &taskCB->joinList, LOS_WAIT_FOREVER); in OsTaskJoinPendUnsafe() 245 LosTaskCB *runTask = OsCurrTaskGet(); in LOS_CurTaskIDGet() local 247 if (runTask == NULL) { in LOS_CurTaskIDGet() 250 return runTask->taskID; in LOS_CurTaskIDGet() 800 LITE_OS_SEC_TEXT VOID OsRunningTaskToExit(LosTaskCB *runTask, UINT32 status) in OsRunningTaskToExit() argument 804 if (OsProcessThreadGroupIDGet(runTask) == runTask->taskID) { in OsRunningTaskToExit() 808 OsHookCall(LOS_HOOK_TYPE_TASK_DELETE, runTask); in OsRunningTaskToExit() 811 if (OsProcessThreadNumberGet(runTask) == 1) { /* 1: The last task of the process exits */ in OsRunningTaskToExit() 814 OsTaskResourcesToFree(runTask); in OsRunningTaskToExit() [all …]
|
D | los_process.c | 109 LosTaskCB *runTask = OsCurrTaskGet(); in OsProcessAddNewTask() local 110 runTask->ops->schedParamGet(runTask, param); in OsProcessAddNewTask() 1029 STATIC VOID OsWaitInsertWaitListInOrder(LosTaskCB *runTask, LosProcessCB *processCB) in OsWaitInsertWaitListInOrder() argument 1035 if (runTask->waitFlag == OS_PROCESS_WAIT_GID) { in OsWaitInsertWaitListInOrder() 1044 } else if (runTask->waitFlag == OS_PROCESS_WAIT_ANY) { in OsWaitInsertWaitListInOrder() 1057 (VOID)runTask->ops->wait(runTask, list->pstNext, LOS_WAIT_FOREVER); in OsWaitInsertWaitListInOrder() 1065 LosTaskCB *runTask = OsCurrTaskGet(); in OsWaitSetFlag() local 1079 runTask->waitFlag = OS_PROCESS_WAIT_PRO; in OsWaitSetFlag() 1080 runTask->waitID = pid; in OsWaitSetFlag() 1087 runTask->waitID = processCB->group->groupID; in OsWaitSetFlag() [all …]
|
/kernel/uniproton/src/core/kernel/task/ |
D | prt_task_minor.c | 97 struct TagTskCb *runTask = NULL; in PRT_TaskDelay() local 116 runTask = RUNNING_TASK; in PRT_TaskDelay() 118 OsTskReadyDel(runTask); in PRT_TaskDelay() 119 TSK_STATUS_SET(runTask, OS_TSK_DELAY); in PRT_TaskDelay() 120 OsTskTimerAdd(runTask, tick); in PRT_TaskDelay() 128 ret = OsTaskYield(runTask->priority, OS_TSK_NULL_ID, NULL); in PRT_TaskDelay()
|
/kernel/liteos_m/kal/posix/src/ |
D | errno.c | 41 LosTaskCB *runTask = NULL; in __errno_location() local 44 runTask = OS_TCB_FROM_TID(LOS_CurTaskIDGet()); in __errno_location() 45 return &runTask->errorNo; in __errno_location()
|
/kernel/liteos_a/compat/posix/src/ |
D | errno.c | 41 LosTaskCB *runTask = NULL; in __errno_location() local 44 runTask = OsCurrTaskGet(); in __errno_location() 45 return &runTask->errorNo; in __errno_location()
|
/kernel/liteos_m/testsuites/sample/kernel/task/ |
D | It_los_task_047.c | 44 …ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, OS_TASK_PRIORITY_HIGHEST, g_losTask.runTask-… in TaskF01() 50 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, newPrio, g_losTask.runTask->priority); in TaskF01()
|
/kernel/liteos_m/components/debugtools/ |
D | los_schedtrace.c | 69 STATIC VOID DefaultRecordHandle(LosTaskCB *newTask, LosTaskCB *runTask) in DefaultRecordHandle() argument 75 g_traceRingBuf[point].runTaskID = runTask->taskID; in DefaultRecordHandle() 76 …(VOID)memcpy_s(g_traceRingBuf[point].runTaskName, LOS_TASK_NAMELEN, runTask->taskName, LOS_TASK_NA… in DefaultRecordHandle() 93 VOID OsSchedTraceRecord(LosTaskCB *newTask, LosTaskCB *runTask) in OsSchedTraceRecord() argument 100 g_recordCB(newTask, runTask); in OsSchedTraceRecord()
|
/kernel/liteos_a/kernel/base/include/ |
D | los_task_pri.h | 208 LosTaskCB *runTask; member 286 LosTaskCB *runTask = OsCurrTaskGet(); in OsTaskWaitSetPendMask() local 287 runTask->waitID = lockID; in OsTaskWaitSetPendMask() 288 runTask->waitFlag = mask; in OsTaskWaitSetPendMask() 317 extern VOID OsRunningTaskToExit(LosTaskCB *runTask, UINT32 status);
|