Lines Matching defs:stackEnd

79 STATIC INLINE UINT32 OsStackAddrGet(UINTPTR *stackStart, UINTPTR *stackEnd, UINTPTR SP)

84 *stackEnd = CSTACK_END_ADDR;
88 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize;
89 if ((SP < (UINTPTR)taskCB->topOfStack) || (SP >= *stackEnd)) {
91 CSTACK_START_ADDR, CSTACK_END_ADDR, (UINTPTR)taskCB->topOfStack, *stackEnd, SP);
98 *stackEnd = CSTACK_END_ADDR;
104 PRINTK("msp, start = %x, end = %x\n", *stackStart, *stackEnd);
109 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize;
110 if ((*stackStart < (UINTPTR)taskCB->topOfStack) || (*stackStart >= *stackEnd)) {
112 taskCB->topOfStack, *stackEnd, *stackStart, taskID);
115 PRINTK("psp, start = %x, end = %x\n", *stackStart, *stackEnd);
288 STATIC INLINE UINT32 OsStackAddrGet(UINTPTR *stackStart, UINTPTR *stackEnd, UINTPTR SP)
293 *stackEnd = CSTACK_END_ADDR;
297 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize;
298 if ((SP < (UINTPTR)taskCB->topOfStack) || (SP >= *stackEnd)) {
300 CSTACK_START_ADDR, CSTACK_END_ADDR, (UINTPTR)taskCB->topOfStack, *stackEnd, SP);
307 *stackEnd = CSTACK_END_ADDR;
317 *stackEnd = (UINTPTR)taskCB->topOfStack + taskCB->stackSize;
318 if ((*stackStart < (UINTPTR)taskCB->topOfStack) || (*stackStart >= *stackEnd)) {
320 taskCB->topOfStack, *stackEnd, *stackStart, taskID);
386 UINT32 stackEnd;
393 stackEnd = taskCB->topOfStack + taskCB->stackSize;
394 if (IsValidSP(regSP, stackStart, stackEnd)) {
402 stackEnd = CSTACK_END_ADDR;
410 *end = stackEnd;
423 UINT32 stackEnd;
427 if (FindSuitableStack(sp, &stackStart, &stackEnd) == FALSE) {
432 while (IsValidSP(backSp, stackStart, stackEnd)) {
500 UINT32 stackEnd;
507 stackEnd = taskCB->topOfStack + taskCB->stackSize;
508 if (IsValidSP(regSP, stackStart, stackEnd)) {
516 stackEnd = CSTACK_END_ADDR;
524 *end = stackEnd;
618 UINT32 stackStart, stackEnd;
633 stackEnd = stackStart + taskCB->stackSize;
636 stackEnd = CSTACK_END_ADDR;
639 while ((SP > stackStart) && (SP < stackEnd)) {
677 UINTPTR stackEnd;
684 ret = OsStackAddrGet(&stackStart, &stackEnd, SP);
690 for (sp = stackStart; sp < stackEnd; sp += sizeof(UINTPTR)) {