Lines Matching refs:sp
41 static inline bool xtensa_stack_ptr_is_sane(uint32_t sp) in xtensa_stack_ptr_is_sane() argument
46 valid = esp_stack_ptr_is_sane(sp); in xtensa_stack_ptr_is_sane()
48 valid = intel_adsp_ptr_is_sane(sp); in xtensa_stack_ptr_is_sane()
58 valid = !xtensa_is_outside_stack_bounds(sp, 0, UINT32_MAX); in xtensa_stack_ptr_is_sane()
82 if (xtensa_is_outside_stack_bounds((uintptr_t)frame->sp, 0, UINT32_MAX)) { in xtensa_backtrace_get_next_frame()
91 char *base_save = (char *)frame->sp; in xtensa_backtrace_get_next_frame()
98 frame->sp = *((uint32_t *)(base_save - 12)); in xtensa_backtrace_get_next_frame()
103 return (xtensa_stack_ptr_is_sane(frame->sp) && in xtensa_backtrace_get_next_frame()
133 xtensa_backtrace_get_start(&(stk_frame.pc), &(stk_frame.sp), in xtensa_backtrace_print()
142 stk_frame.sp); in xtensa_backtrace_print()
145 bool corrupted = !(xtensa_stack_ptr_is_sane(stk_frame.sp) && in xtensa_backtrace_print()
156 printk("0x%08x:0x%08x ", xtensa_cpu_process_stack_pc(stk_frame.pc), stk_frame.sp); in xtensa_backtrace_print()