Home
last modified time | relevance | path

Searched refs:taskInitParam (Results 1 – 21 of 21) sorted by relevance

/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/smp/
DIt_smp_extend_cpup_009.c50 TSK_INIT_PARAM_S taskInitParam; in Task01() local
53 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Task01()
55 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task03; in Task01()
56 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Task01()
57 taskInitParam.pcName = "SmpCpup009_task03"; in Task01()
58 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Task01()
59 taskInitParam.uwResved = LOS_TASK_STATUS_DETACHED; in Task01()
61 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in Task01()
63 ret = LOS_TaskCreate(&g_testSmpCpupTaskID03, &taskInitParam); in Task01()
91 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
[all …]
DIt_smp_extend_cpup_005.c63 TSK_INIT_PARAM_S taskInitParam; in Task01() local
66 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Task01()
68 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task03; in Task01()
69 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Task01()
70 taskInitParam.pcName = "SmpCpup005_task03"; in Task01()
71 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Task01()
73 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in Task01()
75 ret = LOS_TaskCreate(&g_testSmpCpupTaskID03, &taskInitParam); in Task01()
78 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Task01()
80 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task04; in Task01()
[all …]
DIt_smp_extend_cpup_010.c69 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
72 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
74 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
75 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
76 taskInitParam.pcName = "SmpCpup001_task01"; in Testcase()
77 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
78 taskInitParam.uwResved = LOS_TASK_STATUS_DETACHED; in Testcase()
82 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
84 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
87 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
[all …]
DIt_smp_extend_cpup_007.c67 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
70 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
72 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
73 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
74 taskInitParam.pcName = "SmpCpup007_task01"; in Testcase()
75 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
76 taskInitParam.uwResved = LOS_TASK_STATUS_DETACHED; in Testcase()
80 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
82 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
85 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
[all …]
DIt_smp_extend_cpup_008.c67 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
70 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
72 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
73 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
74 taskInitParam.pcName = "SmpCpup008_task01"; in Testcase()
75 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
79 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
81 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
84 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
86 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
[all …]
DIt_smp_extend_cpup_001.c71 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
74 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
76 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
77 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
78 taskInitParam.pcName = "SmpCpup001_task01"; in Testcase()
79 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
83 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
85 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
88 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
90 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
[all …]
DIt_smp_extend_cpup_011.c90 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
93 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
95 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
96 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
97 taskInitParam.pcName = "SmpCpup001_task01"; in Testcase()
98 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
102 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
104 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
107 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
109 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
[all …]
DIt_smp_extend_cpup_012.c69 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
76 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
78 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
79 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
80 taskInitParam.pcName = "SmpCpup001_task01"; in Testcase()
81 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
85 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
87 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
90 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
92 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
[all …]
DIt_smp_extend_cpup_003.c94 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
97 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
99 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
100 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
101 taskInitParam.pcName = "SmpCpup003_task01"; in Testcase()
102 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
106 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
108 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
111 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
113 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
[all …]
DIt_smp_extend_cpup_004.c114 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
117 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
119 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
120 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
121 taskInitParam.pcName = "SmpCpup004_task01"; in Testcase()
122 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 2; // 2, used to calculate the task priority. in Testcase()
126 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid); in Testcase()
128 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
131 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
133 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
[all …]
DIt_smp_extend_cpup_002.c63 TSK_INIT_PARAM_S taskInitParam; in Testcase() local
66 ret = memset_s((void *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in Testcase()
68 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Task01; in Testcase()
69 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
70 taskInitParam.pcName = "SmpCpup002_task01"; in Testcase()
71 taskInitParam.usTaskPrio = TASK_PRIO_TEST - 1; // 1, used to calculate the task priority. in Testcase()
73 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in Testcase()
75 ret = LOS_TaskCreate(&g_testSmpCpupTaskID01, &taskInitParam); in Testcase()
/kernel/liteos_m/components/security/box/
Dlos_box.c76 TSK_INIT_PARAM_S taskInitParam = { 0 }; in OsBoxStart() local
80 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)box->boxStartAddr; in OsBoxStart()
81 taskInitParam.uwStackSize = 0x1000; in OsBoxStart()
82 taskInitParam.pcName = "BoxMainTask"; in OsBoxStart()
83 taskInitParam.usTaskPrio = LOSCFG_BOX_PRIO; in OsBoxStart()
84 taskInitParam.uwResved = LOS_TASK_ATTR_JOINABLE; in OsBoxStart()
85 ret = LOS_TaskCreateOnly(&taskID, &taskInitParam); in OsBoxStart()
105 TSK_INIT_PARAM_S taskInitParam = { 0 }; in LOS_BoxStart() local
113 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)OsBoxStart; in LOS_BoxStart()
114 taskInitParam.uwStackSize = 0x1000; in LOS_BoxStart()
[all …]
/kernel/liteos_m/components/security/syscall/
Dpthread_syscall.c50 TSK_INIT_PARAM_S taskInitParam = { 0 }; in SysUserTaskCreate() local
51 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)entry; in SysUserTaskCreate()
52 taskInitParam.uwStackSize = 0x1000; in SysUserTaskCreate()
53 taskInitParam.pcName = "UserTask"; in SysUserTaskCreate()
54 taskInitParam.usTaskPrio = OS_TASK_PRIORITY_LOWEST; in SysUserTaskCreate()
55 taskInitParam.stackAddr = userSp; in SysUserTaskCreate()
57 taskInitParam.uwResved |= LOS_TASK_ATTR_JOINABLE; in SysUserTaskCreate()
59 ret = LOS_TaskCreateOnly(&taskID, &taskInitParam); in SysUserTaskCreate()
/kernel/uniproton/src/core/kernel/task/
Dprt_amp_task_init.c82 struct TskInitParam taskInitParam; in OsIdleTskAMPCreate() local
86 taskInitParam.taskEntry = g_tskIdleEntry; in OsIdleTskAMPCreate()
87 taskInitParam.stackSize = g_tskModInfo.idleStackSize; in OsIdleTskAMPCreate()
88 taskInitParam.name = tskName; in OsIdleTskAMPCreate()
89 taskInitParam.taskPrio = OS_TSK_PRIORITY_LOWEST; in OsIdleTskAMPCreate()
90 taskInitParam.stackAddr = 0; in OsIdleTskAMPCreate()
93 ret = PRT_TaskCreate(&taskHdl, &taskInitParam); in OsIdleTskAMPCreate()
/kernel/liteos_m/kernel/src/
Dlos_task.c465 TSK_INIT_PARAM_S taskInitParam; in OsIdleTaskCreate() local
467 (VOID)memset_s((VOID *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in OsIdleTaskCreate()
468 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)OsIdleTask; in OsIdleTaskCreate()
469 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_IDLE_STACK_SIZE; in OsIdleTaskCreate()
470 taskInitParam.pcName = "IdleCore000"; in OsIdleTaskCreate()
471 taskInitParam.usTaskPrio = OS_TASK_PRIORITY_LOWEST; in OsIdleTaskCreate()
472 retVal = LOS_TaskCreateOnly(&g_idleTaskID, &taskInitParam); in OsIdleTaskCreate()
680 LITE_OS_SEC_TEXT_INIT STATIC_INLINE UINT32 OsTaskInitParamCheck(TSK_INIT_PARAM_S *taskInitParam) in OsTaskInitParamCheck() argument
682 if (taskInitParam == NULL) { in OsTaskInitParamCheck()
686 if (taskInitParam->pcName == NULL) { in OsTaskInitParamCheck()
[all …]
/kernel/liteos_m/kal/posix/src/
Dpthread.c97 static int PthreadAttrCheck(const pthread_attr_t *threadAttr, TSK_INIT_PARAM_S *taskInitParam) in PthreadAttrCheck() argument
107 taskInitParam->stackAddr = (UINTPTR)threadAttr->stackaddr; in PthreadAttrCheck()
110 taskInitParam->uwStackSize = threadAttr->stacksize; in PthreadAttrCheck()
112 taskInitParam->uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in PthreadAttrCheck()
115 taskInitParam->usTaskPrio = (UINT16)threadAttr->schedparam.sched_priority; in PthreadAttrCheck()
121 taskInitParam->usTaskPrio = (UINT16)schedParam.sched_priority; in PthreadAttrCheck()
123 taskInitParam->usTaskPrio = (UINT16)threadAttr->schedparam.sched_priority; in PthreadAttrCheck()
129 TSK_INIT_PARAM_S *taskInitParam) in PthreadCreateAttrInit() argument
140 ret = PthreadAttrCheck(threadAttr, taskInitParam); in PthreadCreateAttrInit()
162 taskInitParam->pcName = pthreadData->name; in PthreadCreateAttrInit()
[all …]
/kernel/liteos_m/components/trace/
Dlos_trace.c222 TSK_INIT_PARAM_S taskInitParam; in OsCreateTraceAgentTask() local
224 (VOID)memset_s((VOID *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in OsCreateTraceAgentTask()
225 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)TraceAgent; in OsCreateTraceAgentTask()
226 taskInitParam.usTaskPrio = LOSCFG_TRACE_TASK_PRIORITY; in OsCreateTraceAgentTask()
227 taskInitParam.pcName = "TraceAgent"; in OsCreateTraceAgentTask()
228 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in OsCreateTraceAgentTask()
230 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in OsCreateTraceAgentTask()
232 ret = LOS_TaskCreate(&g_traceTaskId, &taskInitParam); in OsCreateTraceAgentTask()
/kernel/liteos_a/kernel/extended/trace/
Dlos_trace.c231 TSK_INIT_PARAM_S taskInitParam; in OsCreateTraceAgentTask() local
233 (VOID)memset_s((VOID *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in OsCreateTraceAgentTask()
234 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)TraceAgent; in OsCreateTraceAgentTask()
235 taskInitParam.usTaskPrio = LOSCFG_TRACE_TASK_PRIORITY; in OsCreateTraceAgentTask()
236 taskInitParam.pcName = "TraceAgent"; in OsCreateTraceAgentTask()
237 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in OsCreateTraceAgentTask()
239 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in OsCreateTraceAgentTask()
241 ret = LOS_TaskCreate(&g_traceTaskId, &taskInitParam); in OsCreateTraceAgentTask()
/kernel/liteos_a/compat/posix/src/
Dpthread.c224 TSK_INIT_PARAM_S taskInitParam = {0}; in pthread_create() local
237 taskInitParam.pcName = name; in pthread_create()
238 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)startRoutine; in pthread_create()
239 taskInitParam.auwArgs[0] = (UINTPTR)arg; in pthread_create()
240 taskInitParam.usTaskPrio = (UINT16)userAttr.schedparam.sched_priority; in pthread_create()
241 taskInitParam.uwStackSize = userAttr.stacksize; in pthread_create()
243 taskInitParam.processID = (UINTPTR)OsGetKernelInitProcess(); in pthread_create()
245 taskInitParam.processID = (UINTPTR)OsCurrProcessGet(); in pthread_create()
248 taskInitParam.uwResved = LOS_TASK_STATUS_DETACHED; in pthread_create()
251 taskInitParam.uwResved = LOS_TASK_ATTR_JOINABLE; in pthread_create()
[all …]
/kernel/liteos_a/kernel/base/core/
Dlos_task.c233 TSK_INIT_PARAM_S taskInitParam; in OsIdleTaskCreate() local
236 (VOID)memset_s((VOID *)(&taskInitParam), sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); in OsIdleTaskCreate()
237 taskInitParam.pfnTaskEntry = (TSK_ENTRY_FUNC)OsIdleTask; in OsIdleTaskCreate()
238 taskInitParam.uwStackSize = LOSCFG_BASE_CORE_TSK_IDLE_STACK_SIZE; in OsIdleTaskCreate()
239 taskInitParam.pcName = "Idle"; in OsIdleTaskCreate()
240 taskInitParam.policy = LOS_SCHED_IDLE; in OsIdleTaskCreate()
241 taskInitParam.usTaskPrio = OS_TASK_PRIORITY_LOWEST; in OsIdleTaskCreate()
242 taskInitParam.processID = processID; in OsIdleTaskCreate()
244 taskInitParam.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in OsIdleTaskCreate()
246 ret = LOS_TaskCreateOnly(&idleTaskID, &taskInitParam); in OsIdleTaskCreate()
[all …]
/kernel/liteos_m/kernel/include/
Dlos_task.h633 extern UINT32 LOS_TaskCreateOnly(UINT32 *taskID, TSK_INIT_PARAM_S *taskInitParam);
680 extern UINT32 LOS_TaskCreate(UINT32 *taskID, TSK_INIT_PARAM_S *taskInitParam);