/kernel/liteos_m/kal/posix/src/ |
D | pthread_attr.c | 213 int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stackSize) in pthread_attr_setstacksize() argument 216 if ((attr == NULL) || (stackSize < PTHREAD_STACK_MIN)) { in pthread_attr_setstacksize() 221 attr->stacksize = stackSize; in pthread_attr_setstacksize() 225 int pthread_attr_setstack(pthread_attr_t *attr, void *stackAddr, size_t stackSize) in pthread_attr_setstack() argument 227 if ((attr == NULL) || (stackAddr == NULL) || (stackSize < PTHREAD_STACK_MIN)) { in pthread_attr_setstack() 232 attr->stacksize = stackSize; in pthread_attr_setstack() 238 int pthread_attr_getstack(const pthread_attr_t *attr, void **stackAddr, size_t *stackSize) in pthread_attr_getstack() argument 240 if ((attr == NULL) || (stackAddr == NULL) || (stackSize == NULL) || in pthread_attr_getstack() 246 *stackSize = attr->stacksize; in pthread_attr_getstack() 250 int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stackSize) in pthread_attr_getstacksize() argument [all …]
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
D | pthread_test_018.cpp | 66 int stackSize = 0x3000; in GroupProcess() local 70 void *stack = malloc(stackSize); in GroupProcess() 73 ret = pthread_attr_setstack(&attr, stack, stackSize); in GroupProcess() 79 ICUNIT_ASSERT_EQUAL(getSize, stackSize, getSize); in GroupProcess() 91 stackSize = 3000; in GroupProcess() 94 stack = malloc(stackSize); in GroupProcess() 97 ret = pthread_attr_setstack(&attr, stack, stackSize); in GroupProcess() 103 ICUNIT_ASSERT_EQUAL(getSize, stackSize, getSize); in GroupProcess()
|
D | pthread_test_019.cpp | 66 int stackSize = 2047; in GroupProcess() local 71 ret = pthread_attr_setstack(&attr, stack, stackSize); in GroupProcess() 77 stackSize = 3000; // 3000, change stackSize, test again. in GroupProcess() 82 ret = pthread_attr_setstack(&attr, stack, stackSize); in GroupProcess() 88 ICUNIT_ASSERT_EQUAL(getSize, stackSize, getSize); in GroupProcess()
|
/kernel/uniproton/src/core/kernel/task/ |
D | prt_task_init.c | 187 if (initParam->stackSize == 0) { in OsTaskCreateParaCheck() 188 initParam->stackSize = g_tskModInfo.defaultSize; in OsTaskCreateParaCheck() 191 if (((OS_TSK_STACK_SIZE_ALIGN - 1) & initParam->stackSize) != 0) { in OsTaskCreateParaCheck() 199 if (initParam->stackSize < OS_TSK_MIN_STACK_SIZE) { in OsTaskCreateParaCheck() 205 stackAddrLen = (U64)(initParam->stackAddr) + (U64)(initParam->stackSize); in OsTaskCreateParaCheck() 237 OS_SEC_L4_TEXT void OsTskStackInit(U32 stackSize, uintptr_t topStack) in OsTskStackInit() argument 243 for (loop = 1; loop < (stackSize / sizeof(U32)); loop++) { in OsTskStackInit() 284 topStack = OsTskMemAlloc(initParam->stackSize); in OsTaskCreateRsrcInit() 291 *curStackSize = initParam->stackSize; in OsTaskCreateRsrcInit() 310 taskCb->stackSize = curStackSize; in OsTskCreateTcbInit()
|
D | prt_task_info.c | 64 taskInfo->stackSize = taskCb->stackSize; in OsTaskInfoCommonGet() 124 …stackInfo->bottom = TRUNCATE(((uintptr_t)(taskCb->topOfStack) + (taskCb->stackSize)), OS_TSK_STACK… in OsTaskStackInfoGet()
|
/kernel/liteos_a/compat/posix/src/ |
D | pthread_attr.c | 212 int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stackSize) in pthread_attr_setstacksize() argument 215 if ((attr == NULL) || (stackSize < PTHREAD_STACK_MIN)) { in pthread_attr_setstacksize() 220 attr->stacksize = stackSize; in pthread_attr_setstacksize() 225 int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stackSize) in pthread_attr_getstacksize() argument 228 if ((attr == NULL) || (stackSize == NULL) || (!attr->stacksize_set)) { in pthread_attr_getstacksize() 232 *stackSize = attr->stacksize; in pthread_attr_getstacksize()
|
/kernel/liteos_m/testsuites/unittest/xts/process/ |
D | pthread_attr_test.c | 95 size_t stackSize; variable 98 ret = pthread_attr_getstacksize(&attr, &stackSize); 101 stackSize = PTHREAD_STACK_MIN - 1; /* 1, common data for test, no special meaning */ 102 ret = pthread_attr_setstacksize(&attr, stackSize);
|
/kernel/liteos_a/kernel/base/misc/ |
D | los_stackinfo.c | 73 …tackTop = (UINTPTR *)((UINTPTR)g_stackInfo[index].stackTop + cpuid * g_stackInfo[index].stackSize); in OsExcStackCheck() 99 …tackTop = (UINTPTR *)((UINTPTR)g_stackInfo[index].stackTop + cpuid * g_stackInfo[index].stackSize); in OsExcStackInfo() 100 stack = (UINTPTR *)((UINTPTR)stackTop + g_stackInfo[index].stackSize); in OsExcStackInfo() 104 … LOSCFG_KERNEL_CORE_NUM - 1 - cpuid, stackTop, g_stackInfo[index].stackSize, size); in OsExcStackInfo()
|
/kernel/liteos_m/testsuites/sample/posix/pthread/ |
D | It_posix_pthread_024.c | 42 size_t stackSize = PTHREAD_STACK_MIN; in Testcase() local 53 ret = pthread_attr_setstacksize(&attr, stackSize); in Testcase() 58 ICUNIT_ASSERT_EQUAL(ssize, stackSize, ssize); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
D | It_posix_pthread_200.cpp | 44 size_t stackSize = PTHREAD_STACK_MIN; in Testcase() local 55 ret = pthread_attr_setstacksize(&attr, stackSize); in Testcase() 60 ICUNIT_ASSERT_EQUAL(ssize, stackSize, ssize); in Testcase()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
D | It_posix_pthread_200.c | 51 size_t stackSize = PTHREAD_STACK_MIN; in Testcase() local 62 ret = pthread_attr_setstacksize(&attr, stackSize); in Testcase() 67 ICUNIT_ASSERT_EQUAL(ssize, stackSize, ssize); in Testcase()
|
D | It_posix_pthread_046.c | 54 ICUNIT_GOTO_EQUAL(info->task->stackSize, in PthreadF01() 56 …ACK_MIN_TEST + 1 + (sizeof(UINTPTR) * 2 - 1)) & ~(sizeof(UINTPTR) * 2 - 1)), info->task->stackSize, in PthreadF01()
|
D | It_posix_pthread_045.c | 53 …ICUNIT_GOTO_EQUAL(info->task->stackSize, (TASK_STACK_SIZE_TEST + 3) & ~3, info->task->stackSize, E… in PthreadF01()
|
/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/kernel/src/ |
D | los_task.c | 249 peakUsed = OS_TCB_FROM_TID(taskID)->stackSize - in OsGetTaskWaterLine() 314 taskCB->stackSize, 0, 0, 0, 0, 0); in PrintTskInfo() 321 taskCB->stackSize, OsGetTaskWaterLine(taskCB->taskID), in PrintTskInfo() 612 UINT32 endOfStack = g_losTask.newTask->topOfStack + g_losTask.newTask->stackSize; in OsTaskSwitchCheck() 720 taskCB->stackSize = taskInitParam->uwStackSize; in OsNewTaskInit() 745 taskCB->stackSize = ALIGN(taskInitParam->uwStackSize, OS_TASK_STACK_ADDR_ALIGN); in OsNewTaskInit() 747 UINT32 stackSize = taskCB->stackSize + OS_TASK_STACK_PROTECT_SIZE; in OsNewTaskInit() local 748 …UINTPTR stackPtr = (UINTPTR)LOS_MemAllocAlign(OS_TASK_STACK_ADDR, stackSize, OS_TASK_STACK_PROTECT… in OsNewTaskInit() 751 taskCB->topOfStack = (UINTPTR)LOS_MemAllocAlign(OS_TASK_STACK_ADDR, taskCB->stackSize, in OsNewTaskInit() 760 … taskCB->stackSize = taskInitParam->uwStackSize - (taskCB->topOfStack - taskInitParam->stackAddr); in OsNewTaskInit() [all …]
|
/kernel/liteos_a/arch/arm/arm/src/include/ |
D | asm.h | 50 .macro EXC_SP_SET stackBottom, stackSize, reg0, reg1 53 mov \reg1, #\stackSize
|
/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/components/backtrace/ |
D | los_backtrace.c | 88 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize; in OsStackAddrGet() 109 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize; in OsStackAddrGet() 177 stackBottom = taskCB->topOfStack + taskCB->stackSize; in IsValidFP() 297 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize; in OsStackAddrGet() 317 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize; in OsStackAddrGet() 393 stackEnd = taskCB->topOfStack + taskCB->stackSize; in FindSuitableStack() 507 stackEnd = taskCB->topOfStack + taskCB->stackSize; in FindSuitableStack() 633 stackEnd = stackStart + taskCB->stackSize; in LOS_RecordLR()
|
/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()
|