Home
last modified time | relevance | path

Searched refs:newTask (Results 1 – 16 of 16) sorted by relevance

/kernel/liteos_a/kernel/base/sched/
Dlos_sched.c302 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/
Dlos_sched.c482 LosTaskCB *newTask = NULL; in OsGetTopTask() local
485newTask = 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 …]
Dlos_task.c558 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/
Dlos_schedtrace.c69 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()
Dlos_debugtools.h59 typedef void (*SchedTraceRecordCB)(LosTaskCB *newTask, LosTaskCB *runTask);
70 extern VOID OsSchedTraceRecord(LosTaskCB *newTask, LosTaskCB *runTask);
/kernel/liteos_m/components/trace/cnv/
Dtrace_cnv.c172 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/
Dtrace_cnv.c184 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/
Dlos_sched_pri.h678 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()
Dlos_task_pri.h215 LosTaskCB *newTask; member
314 extern VOID OsTaskContextLoad(LosTaskCB *newTask);
/kernel/liteos_a/kernel/extended/cpup/
Dlos_cpup_pri.h74 extern VOID OsCpupCycleEndStart(LosTaskCB *runTask, LosTaskCB *newTask);
Dlos_cpup.c249 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/
Dlos_context.c85 g_losTask.runTask = g_losTask.newTask; in HalTaskSwitch()
/kernel/liteos_a/kernel/extended/perf/pmu/
Dperf_sw_pmu.c92 STATIC VOID LOS_PerfTaskSwitchedIn(const LosTaskCB *newTask, const LosTaskCB *runTask) in LOS_PerfTaskSwitchedIn() argument
/kernel/liteos_a/kernel/extended/hook/include/
Dlos_hook_types.h89 …LOS_HOOK_TYPE_DEF(LOS_HOOK_TYPE_TASK_SWITCHEDIN, (const LosTaskCB *newTask, const LosTaskCB *runTa…
/kernel/liteos_m/components/cpup/
Dlos_cpup.c196 taskID = g_losTask.newTask->taskID; in OsTskCycleStart()
263 taskID = g_losTask.newTask->taskID; in OsTskCycleEndStart()
/kernel/liteos_m/kernel/include/
Dlos_task.h1515 LosTaskCB *newTask; member