Home
last modified time | relevance | path

Searched refs:topStack (Results 1 – 25 of 25) sorted by relevance

/kernel/uniproton/src/core/kernel/task/
Dprt_task_init.c237 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/
Dlos_context.c111 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c75 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/
Dprt_port.c20 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/
Dlos_hw.c72 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/
Dlos_context.c44 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/
Dlos_context.c77 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/
Dlos_context.c80 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/
Dlos_context.c78 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c82 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/
Dlos_context.c76 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/
Dlos_context.c76 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/
Dlos_context.c75 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/
Dprt_cpu_external.h30 extern void *OsTskContextInit(U32 taskId, U32 stackSize, uintptr_t *topStack, uintptr_t funcTskEntr…
/kernel/liteos_m/arch/include/
Dlos_context.h68 VOID *ArchTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack);
/kernel/liteos_a/arch/arm/arm/src/include/
Dlos_hw_pri.h104 extern VOID *OsTaskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack, BOOL initFlag);
/kernel/liteos_a/kernel/base/core/
Dlos_task.c584 …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()