/kernel/liteos_a/kernel/base/core/ |
D | los_task.c | 133 VOID OsTaskInsertToRecycleList(LosTaskCB *taskCB) in OsTaskInsertToRecycleList() argument 135 LOS_ListTailInsert(&g_taskRecycleList, &taskCB->pendList); in OsTaskInsertToRecycleList() 138 LITE_OS_SEC_TEXT_INIT VOID OsTaskJoinPostUnsafe(LosTaskCB *taskCB) in OsTaskJoinPostUnsafe() argument 140 if (taskCB->taskStatus & OS_TASK_FLAG_PTHREAD_JOIN) { in OsTaskJoinPostUnsafe() 141 if (!LOS_ListEmpty(&taskCB->joinList)) { in OsTaskJoinPostUnsafe() 142 LosTaskCB *resumedTask = OS_TCB_FROM_PENDLIST(LOS_DL_LIST_FIRST(&(taskCB->joinList))); in OsTaskJoinPostUnsafe() 147 taskCB->taskStatus |= OS_TASK_STATUS_EXIT; in OsTaskJoinPostUnsafe() 150 LITE_OS_SEC_TEXT UINT32 OsTaskJoinPendUnsafe(LosTaskCB *taskCB) in OsTaskJoinPendUnsafe() argument 152 if (taskCB->taskStatus & OS_TASK_STATUS_INIT) { in OsTaskJoinPendUnsafe() 156 if (taskCB->taskStatus & OS_TASK_STATUS_EXIT) { in OsTaskJoinPendUnsafe() [all …]
|
D | los_info.c | 53 STATIC INLINE UINT32 GetCurrTid(const LosTaskCB *taskCB) in GetCurrTid() argument 56 if (taskCB->pidContainer != OsCurrTaskGet()->pidContainer) { in GetCurrTid() 57 return OsGetVtidFromCurrContainer(taskCB); in GetCurrTid() 60 return taskCB->taskID; in GetCurrTid() 66 LosTaskCB *taskCB = NULL; in GetProcessStatus() local 73 LOS_DL_LIST_FOR_EACH_ENTRY(taskCB, &processCB->threadSiblingList, LosTaskCB, threadList) { in GetProcessStatus() 74 status |= (taskCB->taskStatus & 0x00FF); in GetProcessStatus() 100 LosTaskCB *taskCB = processCB->threadGroup; in GetProcessInfo() local 101 pcbInfo->threadGroupID = taskCB->taskID; in GetProcessInfo() 102 taskCB->ops->schedParamGet(taskCB, ¶m); in GetProcessInfo() [all …]
|
D | los_process.c | 84 VOID OsDeleteTaskFromProcess(LosTaskCB *taskCB) in OsDeleteTaskFromProcess() argument 86 LosProcessCB *processCB = OS_PCB_FROM_TCB(taskCB); in OsDeleteTaskFromProcess() 88 LOS_ListDelete(&taskCB->threadList); in OsDeleteTaskFromProcess() 90 OsTaskInsertToRecycleList(taskCB); in OsDeleteTaskFromProcess() 93 UINT32 OsProcessAddNewTask(UINTPTR processID, LosTaskCB *taskCB, SchedParam *param, UINT32 *numCoun… in OsProcessAddNewTask() argument 100 if (OsAllocVtid(taskCB, processCB) == OS_INVALID_VALUE) { in OsProcessAddNewTask() 107 taskCB->processCB = (UINTPTR)processCB; in OsProcessAddNewTask() 108 LOS_ListTailInsert(&(processCB->threadSiblingList), &(taskCB->threadList)); in OsProcessAddNewTask() 110 taskCB->taskStatus |= OS_TASK_FLAG_USER_MODE; in OsProcessAddNewTask() 123 taskCB->archMmu = (UINTPTR)&processCB->vmSpace->archMmu; in OsProcessAddNewTask() [all …]
|
/kernel/liteos_m/kernel/src/ |
D | los_task.c | 135 STATIC INLINE VOID OsInsertTCBToFreeList(LosTaskCB *taskCB) in OsInsertTCBToFreeList() argument 137 UINT32 taskID = taskCB->taskID; in OsInsertTCBToFreeList() 138 (VOID)memset_s(taskCB, sizeof(LosTaskCB), 0, sizeof(LosTaskCB)); in OsInsertTCBToFreeList() 139 taskCB->taskID = taskID; in OsInsertTCBToFreeList() 140 taskCB->taskStatus = OS_TASK_STATUS_UNUSED; in OsInsertTCBToFreeList() 141 LOS_ListAdd(&g_losFreeTask, &taskCB->pendList); in OsInsertTCBToFreeList() 144 STATIC VOID OsRecycleTaskResources(LosTaskCB *taskCB, UINTPTR *stackPtr) in OsRecycleTaskResources() argument 146 if ((taskCB->taskStatus & OS_TASK_FLAG_STACK_FREE) && (taskCB->topOfStack != 0)) { in OsRecycleTaskResources() 148 *stackPtr = taskCB->topOfStack - OS_TASK_STACK_PROTECT_SIZE; in OsRecycleTaskResources() 150 *stackPtr = taskCB->topOfStack; in OsRecycleTaskResources() [all …]
|
D | los_sched.c | 76 STATIC INLINE VOID OsTimeSliceUpdate(LosTaskCB *taskCB, UINT64 currTime) in OsTimeSliceUpdate() argument 78 LOS_ASSERT(currTime >= taskCB->startTime); in OsTimeSliceUpdate() 80 INT32 incTime = currTime - taskCB->startTime; in OsTimeSliceUpdate() 81 if (taskCB->taskID != g_idleTaskID) { in OsTimeSliceUpdate() 82 taskCB->timeSlice -= incTime; in OsTimeSliceUpdate() 84 taskCB->startTime = currTime; in OsTimeSliceUpdate() 172 STATIC INLINE VOID OsSchedWakePendTimeTask(LosTaskCB *taskCB, BOOL *needSchedule) in OsSchedWakePendTimeTask() argument 174 UINT16 tempStatus = taskCB->taskStatus; in OsSchedWakePendTimeTask() 176 … taskCB->taskStatus &= ~(OS_TASK_STATUS_PEND | OS_TASK_STATUS_PEND_TIME | OS_TASK_STATUS_DELAY); in OsSchedWakePendTimeTask() 178 taskCB->taskStatus |= OS_TASK_STATUS_TIMEOUT; in OsSchedWakePendTimeTask() [all …]
|
/kernel/liteos_a/kernel/base/sched/ |
D | los_deadline.c | 40 STATIC VOID EDFDequeue(SchedRunqueue *rq, LosTaskCB *taskCB); 41 STATIC VOID EDFEnqueue(SchedRunqueue *rq, LosTaskCB *taskCB); 42 STATIC UINT64 EDFWaitTimeGet(LosTaskCB *taskCB); 45 STATIC BOOL EDFSchedParamModify(LosTaskCB *taskCB, const SchedParam *param); 46 STATIC UINT32 EDFSchedParamGet(const LosTaskCB *taskCB, SchedParam *param); 49 STATIC VOID EDFExit(LosTaskCB *taskCB); 50 STATIC UINT32 EDFSuspend(LosTaskCB *taskCB); 51 STATIC UINT32 EDFResume(LosTaskCB *taskCB, BOOL *needSched); 52 STATIC UINT64 EDFTimeSliceGet(const LosTaskCB *taskCB); 53 STATIC VOID EDFTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime); [all …]
|
D | los_priority.c | 48 STATIC VOID HPFDequeue(SchedRunqueue *rq, LosTaskCB *taskCB); 49 STATIC VOID HPFEnqueue(SchedRunqueue *rq, LosTaskCB *taskCB); 50 STATIC UINT64 HPFWaitTimeGet(LosTaskCB *taskCB); 53 STATIC BOOL HPFSchedParamModify(LosTaskCB *taskCB, const SchedParam *param); 54 STATIC UINT32 HPFSchedParamGet(const LosTaskCB *taskCB, SchedParam *param); 57 STATIC VOID HPFStartToRun(SchedRunqueue *rq, LosTaskCB *taskCB); 58 STATIC VOID HPFExit(LosTaskCB *taskCB); 59 STATIC UINT32 HPFSuspend(LosTaskCB *taskCB); 60 STATIC UINT32 HPFResume(LosTaskCB *taskCB, BOOL *needSched); 61 STATIC UINT64 HPFTimeSliceGet(const LosTaskCB *taskCB); [all …]
|
D | los_idle.c | 34 STATIC VOID IdleDequeue(SchedRunqueue *rq, LosTaskCB *taskCB); 35 STATIC VOID IdleEnqueue(SchedRunqueue *rq, LosTaskCB *taskCB); 38 STATIC UINT32 IdleSchedParamGet(const LosTaskCB *taskCB, SchedParam *param); 40 STATIC VOID IdleStartToRun(SchedRunqueue *rq, LosTaskCB *taskCB); 41 STATIC UINT32 IdleResume(LosTaskCB *taskCB, BOOL *needSched); 42 STATIC UINT64 IdleTimeSliceGet(const LosTaskCB *taskCB); 43 STATIC VOID IdleTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime); 69 STATIC VOID IdleTimeSliceUpdate(SchedRunqueue *rq, LosTaskCB *taskCB, UINT64 currTime) in IdleTimeSliceUpdate() argument 73 taskCB->startTime = currTime; in IdleTimeSliceUpdate() 76 STATIC UINT64 IdleTimeSliceGet(const LosTaskCB *taskCB) in IdleTimeSliceGet() argument [all …]
|
D | los_statistics.c | 103 STATIC VOID SchedDataGet(const LosTaskCB *taskCB, UINT64 *runTime, UINT64 *timeSlice, in SchedDataGet() argument 106 if (taskCB->schedStat.switchCount >= 1) { in SchedDataGet() 107 UINT64 averRunTime = taskCB->schedStat.runTime / taskCB->schedStat.switchCount; in SchedDataGet() 111 if (taskCB->schedStat.timeSliceCount > 1) { in SchedDataGet() 112 … UINT64 averTimeSlice = taskCB->schedStat.timeSliceTime / (taskCB->schedStat.timeSliceCount - 1); in SchedDataGet() 116 if (taskCB->schedStat.pendCount > 1) { in SchedDataGet() 117 UINT64 averPendTime = taskCB->schedStat.pendTime / taskCB->schedStat.pendCount; in SchedDataGet() 121 if (taskCB->schedStat.waitSchedCount > 0) { in SchedDataGet() 122 UINT64 averSchedWait = taskCB->schedStat.waitSchedTime / taskCB->schedStat.waitSchedCount; in SchedDataGet() 148 LosTaskCB *taskCB = g_taskCBArray + tid; in OsShellShowSchedStatistics() local [all …]
|
D | los_sched.c | 103 STATIC INLINE VOID SchedTimeoutTaskWake(SchedRunqueue *rq, UINT64 currTime, LosTaskCB *taskCB, BOOL… in SchedTimeoutTaskWake() argument 106 if (OsSchedPolicyIsEDF(taskCB)) { in SchedTimeoutTaskWake() 107 SchedEDF *sched = (SchedEDF *)&taskCB->sp; in SchedTimeoutTaskWake() 109 if (taskCB->timeSlice >= 0) { in SchedTimeoutTaskWake() 111 … taskCB->taskID, taskCB->taskName, OS_SYS_CYCLE_TO_US(currTime - sched->finishTime)); in SchedTimeoutTaskWake() 113 taskCB->timeSlice = 0; in SchedTimeoutTaskWake() 116 taskCB->taskStatus &= ~OS_TASK_STATUS_PEND_TIME; in SchedTimeoutTaskWake() 121 UINT16 tempStatus = taskCB->taskStatus; in SchedTimeoutTaskWake() 123 … taskCB->taskStatus &= ~(OS_TASK_STATUS_PENDING | OS_TASK_STATUS_PEND_TIME | OS_TASK_STATUS_DELAY); in SchedTimeoutTaskWake() 125 taskCB->taskStatus |= OS_TASK_STATUS_TIMEOUT; in SchedTimeoutTaskWake() [all …]
|
/kernel/liteos_a/kernel/base/include/ |
D | los_sched_pri.h | 275 VOID (*dequeue)(SchedRunqueue *rq, LosTaskCB *taskCB); 276 VOID (*enqueue)(SchedRunqueue *rq, LosTaskCB *taskCB); 277 VOID (*start)(SchedRunqueue *rq, LosTaskCB *taskCB); 278 VOID (*exit)(LosTaskCB *taskCB); 279 UINT64 (*waitTimeGet)(LosTaskCB *taskCB); 281 VOID (*wake)(LosTaskCB *taskCB); 282 BOOL (*schedParamModify)(LosTaskCB *taskCB, const SchedParam *param); 283 UINT32 (*schedParamGet)(const LosTaskCB *taskCB, SchedParam *param); 284 UINT32 (*delay)(LosTaskCB *taskCB, UINT64 waitTime); 285 VOID (*yield)(LosTaskCB *taskCB); [all …]
|
D | los_task_pri.h | 257 STATIC INLINE BOOL OsTaskIsUnused(const LosTaskCB *taskCB) in OsTaskIsUnused() argument 259 return ((taskCB->taskStatus & OS_TASK_STATUS_UNUSED) != 0); in OsTaskIsUnused() 262 STATIC INLINE BOOL OsTaskIsKilled(const LosTaskCB *taskCB) in OsTaskIsKilled() argument 264 return((taskCB->taskStatus & OS_TASK_FLAG_EXIT_KILL) != 0); in OsTaskIsKilled() 267 STATIC INLINE BOOL OsTaskIsNotDelete(const LosTaskCB *taskCB) in OsTaskIsNotDelete() argument 269 …return ((taskCB->taskStatus & (OS_TASK_STATUS_UNUSED | OS_TASK_FLAG_SYSTEM_TASK | OS_TASK_FLAG_NO_… in OsTaskIsNotDelete() 272 STATIC INLINE BOOL OsTaskIsUserMode(const LosTaskCB *taskCB) in OsTaskIsUserMode() argument 274 return ((taskCB->taskStatus & OS_TASK_FLAG_USER_MODE) != 0); in OsTaskIsUserMode() 309 extern UINT32 OsTaskSetDetachUnsafe(LosTaskCB *taskCB); 310 extern VOID OsTaskJoinPostUnsafe(LosTaskCB *taskCB); [all …]
|
D | los_process_pri.h | 161 #define OS_PCB_FROM_TCB(taskCB) ((LosProcessCB *)((taskCB)->processCB)) argument 412 STATIC INLINE UINT32 OsProcessUserIDGet(const LosTaskCB *taskCB) in OsProcessUserIDGet() argument 417 LosProcessCB *process = OS_PCB_FROM_TCB(taskCB); in OsProcessUserIDGet() 426 STATIC INLINE BOOL OsIsProcessThreadGroup(const LosTaskCB *taskCB) in OsIsProcessThreadGroup() argument 428 return (OS_PCB_FROM_TCB(taskCB)->threadGroup == taskCB); in OsIsProcessThreadGroup() 431 STATIC INLINE UINT32 OsProcessThreadNumberGet(const LosTaskCB *taskCB) in OsProcessThreadNumberGet() argument 433 return OS_PCB_FROM_TCB(taskCB)->threadNumber; in OsProcessThreadNumberGet() 547 extern VOID OsWaitWakeTask(LosTaskCB *taskCB, UINT32 wakePID); 550 extern UINT32 OsProcessAddNewTask(UINTPTR processID, LosTaskCB *taskCB, SchedParam *param, UINT32 *… 551 extern VOID OsDeleteTaskFromProcess(LosTaskCB *taskCB);
|
/kernel/liteos_m/components/iar_tls/ |
D | los_iar_tls.h | 40 #define LOSCFG_TASK_CREATE_EXTENSION_HOOK(taskCB) argument 42 #define LOSCFG_TASK_DELETE_EXTENSION_HOOK(taskCB) do { \ argument 43 if (taskCB->iarTlsArea != NULL) { \ 44 __iar_dlib_perthread_deallocate(taskCB->iarTlsArea); \ 45 taskCB->iarTlsArea = NULL; \ 54 #define LOSCFG_TASK_CREATE_EXTENSION_HOOK(taskCB) argument 56 #define LOSCFG_TASK_DELETE_EXTENSION_HOOK(taskCB) do { \ argument 57 if (taskCB->iarTlsArea != NULL) { \ 58 IarPerThreadTlsAreaDeallocate(taskCB->iarTlsArea); \ 59 taskCB->iarTlsArea = NULL; \
|
/kernel/liteos_m/components/backtrace/ |
D | los_backtrace.c | 87 LosTaskCB *taskCB = OS_TCB_FROM_TID(taskID); in OsStackAddrGet() local 88 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize; in OsStackAddrGet() 89 if ((SP < (UINTPTR)taskCB->topOfStack) || (SP >= *stackEnd)) { in OsStackAddrGet() 91 … CSTACK_START_ADDR, CSTACK_END_ADDR, (UINTPTR)taskCB->topOfStack, *stackEnd, SP); in OsStackAddrGet() 108 LosTaskCB *taskCB = OS_TCB_FROM_TID(taskID); in OsStackAddrGet() local 109 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize; in OsStackAddrGet() 110 if ((*stackStart < (UINTPTR)taskCB->topOfStack) || (*stackStart >= *stackEnd)) { in OsStackAddrGet() 112 taskCB->topOfStack, *stackEnd, *stackStart, taskID); in OsStackAddrGet() 166 LosTaskCB *taskCB = NULL; in IsValidFP() local 175 taskCB = OS_TCB_FROM_TID(LOS_CurTaskIDGet()); in IsValidFP() [all …]
|
/kernel/liteos_m/components/trace/cnv/ |
D | trace_cnv.c | 155 STATIC VOID LOS_TraceTaskCreate(const LosTaskCB *taskCB) in LOS_TraceTaskCreate() argument 157 LOS_TRACE(TASK_CREATE, taskCB->taskID, taskCB->taskStatus, taskCB->priority); in LOS_TraceTaskCreate() 160 STATIC VOID LOS_TraceTaskPriModify(const LosTaskCB *taskCB, UINT32 prio) in LOS_TraceTaskPriModify() argument 162 LOS_TRACE(TASK_PRIOSET, taskCB->taskID, taskCB->taskStatus, taskCB->priority, prio); in LOS_TraceTaskPriModify() 165 STATIC VOID LOS_TraceTaskDelete(const LosTaskCB *taskCB) in LOS_TraceTaskDelete() argument 167 LOS_TRACE(TASK_DELETE, taskCB->taskID, taskCB->taskStatus, (UINTPTR)taskCB->stackPointer); in LOS_TraceTaskDelete() 178 STATIC VOID LOS_TraceTaskResume(const LosTaskCB *taskCB) in LOS_TraceTaskResume() argument 180 LOS_TRACE(TASK_RESUME, taskCB->taskID, taskCB->taskStatus, taskCB->priority); in LOS_TraceTaskResume() 183 STATIC VOID LOS_TraceTaskSuspend(const LosTaskCB *taskCB) in LOS_TraceTaskSuspend() argument 185 LOS_TRACE(TASK_SUSPEND, taskCB->taskID, taskCB->taskStatus, g_losTask.runTask->taskID); in LOS_TraceTaskSuspend()
|
/kernel/liteos_a/kernel/extended/trace/cnv/ |
D | trace_cnv.c | 156 STATIC VOID LOS_TraceTaskCreate(const LosTaskCB *taskCB) in LOS_TraceTaskCreate() argument 160 taskCB->ops->schedParamGet(taskCB, ¶m); in LOS_TraceTaskCreate() 161 LOS_TRACE(TASK_CREATE, taskCB->taskID, taskCB->taskStatus, param.priority); in LOS_TraceTaskCreate() 163 (VOID)taskCB; in LOS_TraceTaskCreate() 167 STATIC VOID LOS_TraceTaskPriModify(const LosTaskCB *taskCB, UINT32 prio) in LOS_TraceTaskPriModify() argument 171 taskCB->ops->schedParamGet(taskCB, ¶m); in LOS_TraceTaskPriModify() 172 LOS_TRACE(TASK_PRIOSET, taskCB->taskID, taskCB->taskStatus, param.priority, prio); in LOS_TraceTaskPriModify() 174 (VOID)taskCB; in LOS_TraceTaskPriModify() 179 STATIC VOID LOS_TraceTaskDelete(const LosTaskCB *taskCB) in LOS_TraceTaskDelete() argument 181 LOS_TRACE(TASK_DELETE, taskCB->taskID, taskCB->taskStatus, (UINTPTR)taskCB->stackPointer); in LOS_TraceTaskDelete() [all …]
|
/kernel/liteos_a/kernel/base/ipc/ |
D | los_signal.c | 124 STATIC INLINE VOID OsSigWaitTaskWake(LosTaskCB *taskCB, INT32 signo) in OsSigWaitTaskWake() argument 126 sig_cb *sigcb = &taskCB->sig; in OsSigWaitTaskWake() 130 OsTaskWakeClearPendMask(taskCB); in OsSigWaitTaskWake() 131 taskCB->ops->wake(taskCB); in OsSigWaitTaskWake() 136 STATIC UINT32 OsPendingTaskWake(LosTaskCB *taskCB, INT32 signo) in OsPendingTaskWake() argument 138 if (!OsTaskIsPending(taskCB) || !OsProcessIsUserMode(OS_PCB_FROM_TCB(taskCB))) { in OsPendingTaskWake() 142 if ((signo != SIGKILL) && (taskCB->waitFlag != OS_TASK_WAIT_SIGNAL)) { in OsPendingTaskWake() 146 switch (taskCB->waitFlag) { in OsPendingTaskWake() 150 OsWaitWakeTask(taskCB, OS_INVALID_VALUE); in OsPendingTaskWake() 153 OsTaskWakeClearPendMask(taskCB); in OsPendingTaskWake() [all …]
|
D | los_futex.c | 111 LosTaskCB *taskCB = NULL; in OsFutexShowTaskNodeAttr() local 120 taskCB = OS_TCB_FROM_PENDLIST(LOS_DL_LIST_FIRST(&(lastNode->pendList))); in OsFutexShowTaskNodeAttr() 121 PRINTK(" %u ->", taskCB->taskID); in OsFutexShowTaskNodeAttr() 123 taskCB = LOS_DL_LIST_ENTRY(lastNode, LosTaskCB, futex); in OsFutexShowTaskNodeAttr() 124 PRINTK(" %u ->", taskCB->taskID); in OsFutexShowTaskNodeAttr() 553 STATIC INT32 OsFutexInsertTaskToHash(LosTaskCB **taskCB, FutexNode **node, const UINTPTR futexKey, … in OsFutexInsertTaskToHash() argument 556 *taskCB = OsCurrTaskGet(); in OsFutexInsertTaskToHash() 557 *node = &((*taskCB)->futex); in OsFutexInsertTaskToHash() 573 LosTaskCB *taskCB = NULL; in OsFutexWaitTask() local 594 if (OsFutexInsertTaskToHash(&taskCB, &node, futexKey, flags)) { in OsFutexWaitTask() [all …]
|
/kernel/liteos_m/kernel/include/ |
D | los_sched.h | 62 VOID OsSchedTaskDeQueue(LosTaskCB *taskCB); 64 VOID OsSchedTaskEnQueue(LosTaskCB *taskCB); 70 BOOL OsSchedModifyTaskSchedParam(LosTaskCB *taskCB, UINT16 priority); 76 VOID OsSchedTaskExit(LosTaskCB *taskCB); 78 VOID OsSchedSuspend(LosTaskCB *taskCB); 80 BOOL OsSchedResume(LosTaskCB *taskCB);
|
/kernel/liteos_a/syscall/ |
D | process_syscall.c | 103 LosTaskCB *taskCB = OS_TCB_FROM_TID(tid); in OsUserTaskSchedulerSet() local 105 ret = OsUserTaskOperatePermissionsCheck(taskCB); in OsUserTaskSchedulerSet() 111 taskCB->ops->schedParamGet(taskCB, ¶m); in OsUserTaskSchedulerSet() 128 needSched = taskCB->ops->schedParamModify(taskCB, ¶m); in OsUserTaskSchedulerSet() 159 LosTaskCB *taskCB = OS_TCB_FROM_TID(id); in SysSchedGetScheduler() local 161 ret = OsUserTaskOperatePermissionsCheck(taskCB); in SysSchedGetScheduler() 167 taskCB->ops->schedParamGet(taskCB, ¶m); in SysSchedGetScheduler() 233 LosTaskCB *taskCB = OS_TCB_FROM_TID(id); in SysSchedGetParam() local 235 ret = OsUserTaskOperatePermissionsCheck(taskCB); in SysSchedGetParam() 241 taskCB->ops->schedParamGet(taskCB, ¶m); in SysSchedGetParam() [all …]
|
/kernel/liteos_m/arch/xtensa/lx6/gcc/ |
D | los_interrupt.c | 235 LosTaskCB *taskCB = OS_TCB_FROM_TID(LOS_CurTaskIDGet()); in OsExcCurTaskInfo() local 236 PRINTK("Task name = %s\n", taskCB->taskName); in OsExcCurTaskInfo() 237 PRINTK("Task ID = %d\n", taskCB->taskID); in OsExcCurTaskInfo() 238 PRINTK("Task SP = 0x%x\n", (UINTPTR)taskCB->stackPointer); in OsExcCurTaskInfo() 239 PRINTK("Task ST = 0x%x\n", taskCB->topOfStack); in OsExcCurTaskInfo() 240 PRINTK("Task SS = 0x%x\n", taskCB->stackSize); in OsExcCurTaskInfo() 346 LosTaskCB *taskCB = g_losTask.runTask; in HalExcHandleEntry() local 348 if ((taskCB == NULL) || (taskCB == OS_TCB_FROM_TID(g_taskMaxNum))) { in HalExcHandleEntry()
|
/kernel/liteos_m/components/debugtools/ |
D | los_stackdump.c | 70 LosTaskCB *taskCB = OS_TCB_FROM_TID(taskID); in DumpTaskInfo() local 75 info->taskSP = (UINTPTR)taskCB->stackPointer; in DumpTaskInfo() 78 info->taskSPTop = taskCB->topOfStack; in DumpTaskInfo() 79 info->taskSPLimit = taskCB->topOfStack + taskCB->stackSize; in DumpTaskInfo()
|
/kernel/liteos_a/kernel/base/mp/ |
D | los_mp.c | 78 LosTaskCB *taskCB = NULL; in OsMpCollectTasks() local 84 taskCB = &g_taskCBArray[taskID]; in OsMpCollectTasks() 86 if (OsTaskIsUnused(taskCB) || OsTaskIsRunning(taskCB)) { in OsMpCollectTasks() 94 if (taskCB->signal & SIGNAL_KILL) { in OsMpCollectTasks()
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_exc.c | 654 LosTaskCB *taskCB = NULL; in FindSuitableStack() local 660 taskCB = OsCurrTaskGet(); in FindSuitableStack() 661 stackStart = taskCB->userMapBase; in FindSuitableStack() 662 stackEnd = taskCB->userMapBase + taskCB->userMapSize; in FindSuitableStack() 673 taskCB = &g_taskCBArray[index]; in FindSuitableStack() 674 if (OsTaskIsUnused(taskCB)) { in FindSuitableStack() 678 stackStart = taskCB->topOfStack; in FindSuitableStack() 679 stackEnd = taskCB->topOfStack + taskCB->stackSize; in FindSuitableStack() 907 LosTaskCB *taskCB = NULL; in OsTaskBackTrace() local 913 taskCB = OS_TCB_FROM_TID(taskID); in OsTaskBackTrace() [all …]
|