/kernel/uniproton/src/core/kernel/task/ |
D | prt_task_init.c | 237 OS_SEC_L4_TEXT void OsTskStackInit(U32 stackSize, uintptr_t topStack) in OsTskStackInit() argument 244 *((U32 *)topStack + loop) = stackMagicWord; in OsTskStackInit() 246 *((U32 *)(topStack)) = OS_TSK_STACK_TOP_MAGIC; in OsTskStackInit() 269 uintptr_t *topStack = NULL; in OsTaskCreateRsrcInit() local 281 topStack = (void *)(initParam->stackAddr); in OsTaskCreateRsrcInit() 284 topStack = OsTskMemAlloc(initParam->stackSize); in OsTaskCreateRsrcInit() 285 if (topStack == NULL) { in OsTaskCreateRsrcInit() 296 *topStackOut = topStack; in OsTaskCreateRsrcInit() 334 uintptr_t *topStack = NULL; in OsTaskCreateOnly() local 352 ret = OsTaskCreateRsrcInit(taskId, initParam, taskCb, &topStack, &curStackSize); in OsTaskCreateOnly() [all …]
|
/kernel/liteos_m/arch/xtensa/lx6/gcc/ |
D | los_context.c | 111 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 114 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 123 context->regA[INDEX_OF_SP] = (UINTPTR)topStack + stackSize; /* endStack */ in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/arm9/gcc/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 94 context->sp = (UINTPTR)topStack + stackSize; in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m33/gcc/TZ/non_secure/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 119 context->stackLimit = (UINT32)topStack; in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/non_secure/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 119 context->stackLmit = (UINT32)topStack; in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m55/gcc/TZ/non_secure/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 119 context->stackLimit = (UINT32)topStack; in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m55/iar/TZ/non_secure/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 119 context->stackLmit = (UINT32)topStack; in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m55/gcc/NTZ/ |
D | los_context.c | 75 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 77 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit() 119 context->uwPspLim = (UINT32)topStack; in ArchTskStackInit()
|
/kernel/uniproton/src/arch/cpu/armv7-m/common/ |
D | prt_port.c | 20 OS_SEC_L4_TEXT void *OsTskContextInit(U32 taskId, U32 stackSize, uintptr_t *topStack, uintptr_t fun… in OsTskContextInit() argument 32 endStack = TRUNCATE((uintptr_t)topStack + stackSize, OS_TSK_STACK_ADDR_ALIGN); in OsTskContextInit()
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_hw.c | 72 LITE_OS_SEC_TEXT_INIT VOID *OsTaskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack, BOOL i… in OsTaskStackInit() argument 75 OsStackInit(topStack, stackSize); in OsTaskStackInit() 77 … TaskContext *taskContext = (TaskContext *)(((UINTPTR)topStack + stackSize) - sizeof(TaskContext)); in OsTaskStackInit()
|
/kernel/liteos_m/arch/risc-v/nuclei/gcc/ |
D | los_context.c | 44 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 50 stk = ((UINT8 *)topStack) + stackSize + sizeof(STACK_TYPE); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m3/keil/ |
D | los_context.c | 77 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 79 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/csky/v2/gcc/ |
D | los_context.c | 80 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 82 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m4/iar/ |
D | los_context.c | 78 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 80 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m7/iar/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m55/iar/NTZ/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m33/gcc/NTZ/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/risc-v/riscv32/gcc/ |
D | los_context.c | 82 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 84 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m7/gcc/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m33/iar/NTZ/ |
D | los_context.c | 76 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 78 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/liteos_m/arch/arm/cortex-m4/gcc/ |
D | los_context.c | 75 LITE_OS_SEC_TEXT_INIT VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack) in ArchTskStackInit() argument 77 TaskContext *context = (TaskContext *)((UINTPTR)topStack + stackSize - sizeof(TaskContext)); in ArchTskStackInit()
|
/kernel/uniproton/src/arch/include/ |
D | prt_cpu_external.h | 30 extern void *OsTskContextInit(U32 taskId, U32 stackSize, uintptr_t *topStack, uintptr_t funcTskEntr…
|
/kernel/liteos_m/arch/include/ |
D | los_context.h | 68 VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack);
|
/kernel/liteos_a/arch/arm/arm/src/include/ |
D | los_hw_pri.h | 104 extern VOID *OsTaskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack, BOOL initFlag);
|
/kernel/liteos_a/kernel/base/core/ |
D | los_task.c | 584 …VOID *topStack = (VOID *)LOS_MemAllocAlign(m_aucSysMem1, initParam->uwStackSize, LOSCFG_STACK_POIN… in TaskStackInit() local 585 if (topStack == NULL) { in TaskStackInit() 589 taskCB->topOfStack = (UINTPTR)topStack; in TaskStackInit() 590 taskCB->stackPointer = OsTaskStackInit(taskCB->taskID, initParam->uwStackSize, topStack, TRUE); in TaskStackInit()
|