Lines Matching refs:sp
40 uintptr_t sp = (uintptr_t)esf + sizeof(struct arch_esf); in z_riscv_get_sp_before_exc() local
48 sp = esf->sp; in z_riscv_get_sp_before_exc()
52 return sp; in z_riscv_get_sp_before_exc()
158 uintptr_t sp = (uintptr_t)esf + sizeof(struct arch_esf); in bad_stack_pointer() local
162 sp >= arch_current_thread()->arch.priv_stack_start && in bad_stack_pointer()
163 sp < arch_current_thread()->arch.priv_stack_start + Z_RISCV_STACK_GUARD_SIZE) { in bad_stack_pointer()
168 sp >= arch_current_thread()->stack_info.start - K_THREAD_STACK_RESERVED && in bad_stack_pointer()
169 sp < arch_current_thread()->stack_info.start - K_THREAD_STACK_RESERVED in bad_stack_pointer()
176 if (sp >= arch_current_thread()->stack_info.start - K_KERNEL_STACK_RESERVED && in bad_stack_pointer()
177 sp < arch_current_thread()->stack_info.start - K_KERNEL_STACK_RESERVED in bad_stack_pointer()
185 if ((sp >= isr_stack && sp < isr_stack + Z_RISCV_STACK_GUARD_SIZE) || in bad_stack_pointer()
186 (sp >= main_stack && sp < main_stack + Z_RISCV_STACK_GUARD_SIZE)) { in bad_stack_pointer()
194 (esf->sp < arch_current_thread()->stack_info.start || in bad_stack_pointer()
195 esf->sp > arch_current_thread()->stack_info.start + in bad_stack_pointer()