Home
last modified time | relevance | path

Searched refs:sp_limit (Results 1 – 6 of 6) sorted by relevance

/trusted-firmware-m-3.7.0/secure_fw/spm/core/arch/
Dtfm_arch.c139 uintptr_t sp_limit = p_ctx_ctrl->sp_limit; in tfm_arch_init_context() local
144 if ((uintptr_t)p_tctx - sizeof(struct full_context_t) < sp_limit) { in tfm_arch_init_context()
175 arch_update_process_sp((uint32_t)sc, p_ctx_ctrl->sp_limit); in tfm_arch_refresh_hardware_context()
/trusted-firmware-m-3.7.0/secure_fw/spm/core/
Dinterrupt.c46 uintptr_t sp_base, sp_limit, curr_stack, ctx_stack; in tfm_flih_prepare_depriv_flih() local
59 sp_limit = LOAD_ALLOCED_STACK_ADDR(p_owner_sp->p_ldinf); in tfm_flih_prepare_depriv_flih()
62 if (curr_stack < sp_base && curr_stack > sp_limit) { in tfm_flih_prepare_depriv_flih()
82 flih_ctx_ctrl.sp_limit = sp_limit; in tfm_flih_prepare_depriv_flih()
Dtfm_svcalls.c117 uint32_t sp_limit = tfm_arch_get_psplim(); in init_spm_func_context() local
121 saved_psp_limit = sp_limit; in init_spm_func_context()
127 sp_limit = sp_info.u32_regs.r1; in init_spm_func_context()
131 if ((sp_limit + stack_alloc_size) > sp) { in init_spm_func_context()
142 arch_update_process_sp(sp, sp_limit); in init_spm_func_context()
Dbackend_ipc.c411 uint32_t sp_limit = 0; in backend_abi_entering_spm() local
425 if ((caller->ctx_ctrl.sp <= SPM_THREAD_CONTEXT->sp_limit) || in backend_abi_entering_spm()
428 sp_limit = SPM_THREAD_CONTEXT->sp_limit; in backend_abi_entering_spm()
431 AAPCS_DUAL_U32_SET(spm_stack_info, sp, sp_limit); in backend_abi_entering_spm()
501 if ((p_curr_ctx->sp_limit + in ipc_schedule()
/trusted-firmware-m-3.7.0/platform/ext/cmsis/CMSIS/Core/Template/ARMv8-M/
Dtz_context.c41 uint32_t sp_limit; // stack space limit member
62 ProcessStackInfo[n].sp_limit = (uint32_t)&ProcessStackMemory[n]; in TZ_InitContextSystem_S()
159 __set_PSPLIM(ProcessStackInfo[slot].sp_limit); in TZ_LoadContext_S()
189 if ((sp < ProcessStackInfo[slot].sp_limit) || in TZ_StoreContext_S()
/trusted-firmware-m-3.7.0/secure_fw/spm/include/
Dtfm_arch.h128 uint32_t sp_limit; /* Stack limit (lower address) */ member
149 (x)->sp_limit = ((uint32_t)(buf) + 7) & ~0x7; \
185 .sp_limit = (uint32_t)stack_buf, \