Lines Matching refs:stackStart
79 STATIC INLINE UINT32 OsStackAddrGet(UINTPTR *stackStart, UINTPTR *stackEnd, UINTPTR SP) in OsStackAddrGet() argument
82 *stackStart = SP; in OsStackAddrGet()
97 *stackStart = ArchMspGet(); in OsStackAddrGet()
99 if ((*stackStart < CSTACK_START_ADDR) || (*stackStart >= CSTACK_END_ADDR)) { in OsStackAddrGet()
101 CSTACK_START_ADDR, CSTACK_END_ADDR, *stackStart); in OsStackAddrGet()
104 PRINTK("msp, start = %x, end = %x\n", *stackStart, *stackEnd); in OsStackAddrGet()
106 *stackStart = ArchPspGet(); in OsStackAddrGet()
110 if ((*stackStart < (UINTPTR)taskCB->topOfStack) || (*stackStart >= *stackEnd)) { in OsStackAddrGet()
112 taskCB->topOfStack, *stackEnd, *stackStart, taskID); in OsStackAddrGet()
115 PRINTK("psp, start = %x, end = %x\n", *stackStart, *stackEnd); in OsStackAddrGet()
288 STATIC INLINE UINT32 OsStackAddrGet(UINTPTR *stackStart, UINTPTR *stackEnd, UINTPTR SP) in OsStackAddrGet() argument
291 *stackStart = SP; in OsStackAddrGet()
306 *stackStart = OsSpGet(); in OsStackAddrGet()
308 if ((*stackStart < CSTACK_START_ADDR) || (*stackStart >= CSTACK_END_ADDR)) { in OsStackAddrGet()
310 CSTACK_START_ADDR, CSTACK_END_ADDR, *stackStart); in OsStackAddrGet()
314 *stackStart = OsSpGet(); in OsStackAddrGet()
318 if ((*stackStart < (UINTPTR)taskCB->topOfStack) || (*stackStart >= *stackEnd)) { in OsStackAddrGet()
320 taskCB->topOfStack, *stackEnd, *stackStart, taskID); in OsStackAddrGet()
385 UINT32 stackStart; in FindSuitableStack() local
392 stackStart = taskCB->topOfStack; in FindSuitableStack()
394 if (IsValidSP(regSP, stackStart, stackEnd)) { in FindSuitableStack()
401 stackStart = CSTACK_START_ADDR; in FindSuitableStack()
409 *start = stackStart; in FindSuitableStack()
422 UINTPTR stackStart; in HalBackTraceGet() local
427 if (FindSuitableStack(sp, &stackStart, &stackEnd) == FALSE) { in HalBackTraceGet()
432 while (IsValidSP(backSp, stackStart, stackEnd)) { in HalBackTraceGet()
499 UINT32 stackStart; in FindSuitableStack() local
506 stackStart = taskCB->topOfStack; in FindSuitableStack()
508 if (IsValidSP(regSP, stackStart, stackEnd)) { in FindSuitableStack()
515 stackStart = CSTACK_START_ADDR; in FindSuitableStack()
523 *start = stackStart; in FindSuitableStack()
618 UINT32 stackStart, stackEnd; in LOS_RecordLR() local
632 stackStart = taskCB->topOfStack; in LOS_RecordLR()
633 stackEnd = stackStart + taskCB->stackSize; in LOS_RecordLR()
635 stackStart = CSTACK_START_ADDR; in LOS_RecordLR()
639 while ((SP > stackStart) && (SP < stackEnd)) { in LOS_RecordLR()
676 UINTPTR stackStart; in LOS_RecordLR() local
684 ret = OsStackAddrGet(&stackStart, &stackEnd, SP); in LOS_RecordLR()
690 for (sp = stackStart; sp < stackEnd; sp += sizeof(UINTPTR)) { in LOS_RecordLR()