/kernel/liteos_a/kernel/base/sched/ |
D | los_sched.c | 302 LosTaskCB *newTask = EDFRunqueueTopTaskGet(rq->edfRunqueue); in TopTaskGet() local 303 if (newTask != NULL) { in TopTaskGet() 307 newTask = HPFRunqueueTopTaskGet(rq->hpfRunqueue); in TopTaskGet() 308 if (newTask != NULL) { in TopTaskGet() 312 newTask = rq->idleTask; in TopTaskGet() 315 newTask->ops->start(rq, newTask); in TopTaskGet() 316 return newTask; in TopTaskGet() 331 LosTaskCB *newTask = TopTaskGet(rq); in OsSchedStart() local 332 newTask->taskStatus |= OS_TASK_STATUS_RUNNING; in OsSchedStart() 339 newTask->currCpu = cpuid; 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 | 558 g_losTask.newTask->taskName, g_losTask.newTask->taskID); in OsHandleNewTaskStackOverflow() 560 (UINT32)(UINTPTR)(g_losTask.newTask->stackPointer), g_losTask.newTask->topOfStack); in OsHandleNewTaskStackOverflow() 567 g_losTask.runTask = g_losTask.newTask; in OsHandleNewTaskStackOverflow() 585 mpuAttr.baseAddr = g_losTask.newTask->topOfStack - OS_TASK_STACK_PROTECT_SIZE; in OsTaskStackProtect() 612 UINT32 endOfStack = g_losTask.newTask->topOfStack + g_losTask.newTask->stackSize; in OsTaskSwitchCheck() 617 if (((UINT32)(UINTPTR)(g_losTask.newTask->stackPointer) <= (g_losTask.newTask->topOfStack)) || in OsTaskSwitchCheck() 618 ((UINT32)(UINTPTR)(g_losTask.newTask->stackPointer) > endOfStack)) { in OsTaskSwitchCheck() 627 g_taskSwitchInfo.pid[g_taskSwitchInfo.idx] = (UINT16)(g_losTask.newTask->taskID); in OsTaskSwitchCheck() 630 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_sched_pri.h | 678 LosTaskCB *newTask = NULL; in HPFRunqueueTopTaskGet() local 690 … LOS_DL_LIST_FOR_EACH_ENTRY(newTask, &queueList->priQueList[priority], LosTaskCB, pendList) { in HPFRunqueueTopTaskGet() 692 if (!OsSchedLimitCheckTime(newTask)) { in HPFRunqueueTopTaskGet() 698 if (newTask->cpuAffiMask & (1U << cpuid)) { in HPFRunqueueTopTaskGet() 700 return newTask; in HPFRunqueueTopTaskGet()
|
D | los_task_pri.h | 215 LosTaskCB *newTask; member 314 extern VOID OsTaskContextLoad(LosTaskCB *newTask);
|
/kernel/liteos_a/kernel/extended/cpup/ |
D | los_cpup_pri.h | 74 extern VOID OsCpupCycleEndStart(LosTaskCB *runTask, LosTaskCB *newTask);
|
D | los_cpup.c | 249 VOID OsCpupCycleEndStart(LosTaskCB *runTask, LosTaskCB *newTask) in OsCpupCycleEndStart() argument 253 OsCpupBase *newTaskCpup = &newTask->taskCpup; in OsCpupCycleEndStart() 277 runningTasks[cpuid] = newTask; in OsCpupCycleEndStart()
|
/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
|