/kernel/liteos_a/kernel/base/sched/ |
D | los_sched.c | 284 LosTaskCB *newTask = HPFRunqueueTopTaskGet(rq->hpfRunqueue); in TopTaskGet() local 286 if (newTask == NULL) { in TopTaskGet() 287 newTask = OS_TCB_FROM_TID(rq->idleTaskID); in TopTaskGet() 290 newTask->ops->start(rq, newTask); in TopTaskGet() 291 return newTask; in TopTaskGet() 306 LosTaskCB *newTask = TopTaskGet(rq); in OsSchedStart() local 307 newTask->taskStatus |= OS_TASK_STATUS_RUNNING; in OsSchedStart() 314 newTask->currCpu = cpuid; in OsSchedStart() 317 OsCurrTaskSet((VOID *)newTask); in OsSchedStart() 319 newTask->startTime = OsGetCurrSchedTimeCycle(); in OsSchedStart() [all …]
|
/kernel/liteos_m/kernel/src/ |
D | los_sched.c | 482 LosTaskCB *newTask = NULL; in OsGetTopTask() local 485 …newTask = LOS_DL_LIST_ENTRY(((LOS_DL_LIST *)&g_priQueueList[priority])->pstNext, LosTaskCB, pendLi… in OsGetTopTask() 487 newTask = OS_TCB_FROM_TID(g_idleTaskID); in OsGetTopTask() 490 return newTask; in OsGetTopTask() 498 LosTaskCB *newTask = OsGetTopTask(); in OsSchedStart() local 500 newTask->taskStatus |= OS_TASK_STATUS_RUNNING; in OsSchedStart() 501 g_losTask.newTask = newTask; in OsSchedStart() 502 g_losTask.runTask = g_losTask.newTask; in OsSchedStart() 504 newTask->startTime = OsGetCurrSchedTimeCycle(); in OsSchedStart() 505 OsSchedTaskDeQueue(newTask); in OsSchedStart() [all …]
|
D | los_task.c | 544 g_losTask.newTask->taskName, g_losTask.newTask->taskID); in OsHandleNewTaskStackOverflow() 546 (UINT32)(UINTPTR)(g_losTask.newTask->stackPointer), g_losTask.newTask->topOfStack); in OsHandleNewTaskStackOverflow() 553 g_losTask.runTask = g_losTask.newTask; in OsHandleNewTaskStackOverflow() 571 mpuAttr.baseAddr = g_losTask.newTask->topOfStack - OS_TASK_STACK_PROTECT_SIZE; in OsTaskStackProtect() 598 UINT32 endOfStack = g_losTask.newTask->topOfStack + g_losTask.newTask->stackSize; in OsTaskSwitchCheck() 603 if (((UINT32)(UINTPTR)(g_losTask.newTask->stackPointer) <= (g_losTask.newTask->topOfStack)) || in OsTaskSwitchCheck() 604 ((UINT32)(UINTPTR)(g_losTask.newTask->stackPointer) > endOfStack)) { in OsTaskSwitchCheck() 613 g_taskSwitchInfo.pid[g_taskSwitchInfo.idx] = (UINT16)(g_losTask.newTask->taskID); in OsTaskSwitchCheck() 616 g_losTask.newTask->taskName, LOS_TASK_NAMELEN); in OsTaskSwitchCheck()
|
/kernel/liteos_m/components/debugtools/ |
D | los_schedtrace.c | 69 STATIC VOID DefaultRecordHandle(LosTaskCB *newTask, LosTaskCB *runTask) in DefaultRecordHandle() argument 73 g_traceRingBuf[point].newTaskID = newTask->taskID; in DefaultRecordHandle() 74 …(VOID)memcpy_s(g_traceRingBuf[point].newTaskName, LOS_TASK_NAMELEN, newTask->taskName, LOS_TASK_NA… in DefaultRecordHandle() 93 VOID OsSchedTraceRecord(LosTaskCB *newTask, LosTaskCB *runTask) in OsSchedTraceRecord() argument 100 g_recordCB(newTask, runTask); in OsSchedTraceRecord()
|
D | los_debugtools.h | 59 typedef void (*SchedTraceRecordCB)(LosTaskCB *newTask, LosTaskCB *runTask); 70 extern VOID OsSchedTraceRecord(LosTaskCB *newTask, LosTaskCB *runTask);
|
/kernel/liteos_m/components/trace/cnv/ |
D | trace_cnv.c | 172 LosTaskCB *newTask = g_losTask.newTask; in LOS_TraceTaskSwitchedIn() local 174 LOS_TRACE(TASK_SWITCH, newTask->taskID, runTask->priority, runTask->taskStatus, in LOS_TraceTaskSwitchedIn() 175 newTask->priority, newTask->taskStatus); in LOS_TraceTaskSwitchedIn()
|
/kernel/liteos_a/kernel/extended/trace/cnv/ |
D | trace_cnv.c | 184 STATIC VOID LOS_TraceTaskSwitchedIn(const LosTaskCB *newTask, const LosTaskCB *runTask) in LOS_TraceTaskSwitchedIn() argument 190 newTask->ops->schedParamGet(newTask, &newParam); in LOS_TraceTaskSwitchedIn() 191 LOS_TRACE(TASK_SWITCH, newTask->taskID, runParam.priority, runTask->taskStatus, in LOS_TraceTaskSwitchedIn() 192 newParam.priority, newTask->taskStatus); in LOS_TraceTaskSwitchedIn() 194 (VOID)newTask; in LOS_TraceTaskSwitchedIn()
|
/kernel/liteos_a/kernel/base/include/ |
D | los_task_pri.h | 209 LosTaskCB *newTask; member 303 extern VOID OsTaskContextLoad(LosTaskCB *newTask);
|
D | los_sched_pri.h | 615 LosTaskCB *newTask = NULL; in HPFRunqueueTopTaskGet() local 627 … LOS_DL_LIST_FOR_EACH_ENTRY(newTask, &queueList->priQueList[priority], LosTaskCB, pendList) { in HPFRunqueueTopTaskGet() 629 if (newTask->cpuAffiMask & (1U << cpuid)) { in HPFRunqueueTopTaskGet() 631 return newTask; in HPFRunqueueTopTaskGet()
|
/kernel/liteos_m/arch/risc-v/nuclei/gcc/ |
D | los_context.c | 85 g_losTask.runTask = g_losTask.newTask; in HalTaskSwitch()
|
/kernel/liteos_a/kernel/extended/perf/pmu/ |
D | perf_sw_pmu.c | 92 STATIC VOID LOS_PerfTaskSwitchedIn(const LosTaskCB *newTask, const LosTaskCB *runTask) in LOS_PerfTaskSwitchedIn() argument
|
/kernel/liteos_a/kernel/extended/hook/include/ |
D | los_hook_types.h | 89 …LOS_HOOK_TYPE_DEF(LOS_HOOK_TYPE_TASK_SWITCHEDIN, (const LosTaskCB *newTask, const LosTaskCB *runTa…
|
/kernel/liteos_m/components/cpup/ |
D | los_cpup.c | 196 taskID = g_losTask.newTask->taskID; in OsTskCycleStart() 263 taskID = g_losTask.newTask->taskID; in OsTskCycleEndStart()
|
/kernel/liteos_m/kernel/include/ |
D | los_task.h | 1515 LosTaskCB *newTask; member
|