Home
last modified time | relevance | path

Searched refs:guard_start (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/arch/arm/core/mpu/
Darm_core_mpu.c272 uintptr_t guard_start; in z_arm_configure_dynamic_mpu_regions() local
285 guard_start = thread->arch.priv_stack_start - guard_size; in z_arm_configure_dynamic_mpu_regions()
287 __ASSERT((uintptr_t)&z_priv_stacks_ram_start <= guard_start, in z_arm_configure_dynamic_mpu_regions()
289 guard_start, z_priv_stacks_ram_start); in z_arm_configure_dynamic_mpu_regions()
296 guard_start = thread->stack_info.start - guard_size; in z_arm_configure_dynamic_mpu_regions()
298 __ASSERT((uintptr_t)thread->stack_obj == guard_start, in z_arm_configure_dynamic_mpu_regions()
300 guard_start, thread->stack_obj); in z_arm_configure_dynamic_mpu_regions()
307 dynamic_regions[region_num].start = guard_start; in z_arm_configure_dynamic_mpu_regions()
/Zephyr-latest/arch/arc/core/
Dfault.c57 uint32_t guard_end, guard_start; in z_check_thread_stack_fail() local
76 guard_start = (uint32_t)thread->stack_obj; in z_check_thread_stack_fail()
83 guard_start = guard_end - Z_ARC_STACK_GUARD_SIZE; in z_check_thread_stack_fail()
90 guard_start = guard_end - Z_ARC_STACK_GUARD_SIZE; in z_check_thread_stack_fail()
99 if (fault_addr < guard_end && fault_addr >= guard_start) { in z_check_thread_stack_fail()
/Zephyr-latest/arch/arm/core/cortex_m/
Dthread.c313 uint32_t guard_start = in configure_builtin_stack_guard() local
323 uint32_t guard_start = thread->stack_info.start; in configure_builtin_stack_guard()
326 __set_PSPLIM(guard_start); in configure_builtin_stack_guard()
335 #define IS_MPU_GUARD_VIOLATION(guard_start, guard_len, fault_addr, stack_ptr) \ argument
337 ((fault_addr >= guard_start) && \
338 (fault_addr < (guard_start + guard_len)) && \
339 (stack_ptr < (guard_start + guard_len))) \
341 (stack_ptr < (guard_start + guard_len)))
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dthread.c260 #define IS_MPU_GUARD_VIOLATION(guard_start, guard_len, fault_addr, stack_ptr) \ argument
262 ((fault_addr >= guard_start) && \
263 (fault_addr < (guard_start + guard_len)) && \
264 (stack_ptr < (guard_start + guard_len))) \
266 (stack_ptr < (guard_start + guard_len)))
/Zephyr-latest/arch/arm64/core/
Dfatal.c286 uint64_t sp, sp_limit, guard_start; in z_arm64_stack_corruption_check() local
290 guard_start = sp_limit - Z_ARM64_STACK_GUARD_SIZE; in z_arm64_stack_corruption_check()
292 if ((sp != 0 && sp <= sp_limit) || (guard_start <= far && far <= sp_limit)) { in z_arm64_stack_corruption_check()
312 guard_start = sp_limit - Z_ARM64_STACK_GUARD_SIZE; in z_arm64_stack_corruption_check()
314 if (sp <= sp_limit || (guard_start <= far && far <= sp_limit)) { in z_arm64_stack_corruption_check()
/Zephyr-latest/arch/arc/core/mpu/
Darc_mpu_v4_internal.h538 uint32_t guard_start; in arc_core_mpu_configure_thread() local
548 guard_start = thread->arch.priv_stack_start; in arc_core_mpu_configure_thread()
552 guard_start = thread->stack_info.start; in arc_core_mpu_configure_thread()
554 guard_start -= Z_ARC_STACK_GUARD_SIZE; in arc_core_mpu_configure_thread()
556 if (_mpu_configure(THREAD_STACK_GUARD_REGION, guard_start, in arc_core_mpu_configure_thread()
/Zephyr-latest/arch/arm64/core/cortex_r/
Darm_mpu.c707 uintptr_t guard_start; in configure_dynamic_mpu_regions() local
710 guard_start = (uintptr_t)thread->arch.stack_limit - Z_ARM64_STACK_GUARD_SIZE; in configure_dynamic_mpu_regions()
713 guard_start, in configure_dynamic_mpu_regions()