Skip to content
Browse files

arch: arm: mpu: minor fix to the start of the guard

Fix the start of the guard to take into account the
configurable size of the guard.

Signed-off-by: Ioannis Glaropoulos <>
  • Loading branch information...
ioannisg authored and andrewboie committed Jun 28, 2019
1 parent ee040e9 commit e82004e21122f5c74d407ac23367b007958a216b
Showing with 2 additions and 2 deletions.
  1. +2 −2 arch/arm/core/cortex_m/mpu/arm_core_mpu.c
@@ -222,8 +222,8 @@ void z_arch_configure_dynamic_mpu_regions(struct k_thread *thread)

if (thread->arch.priv_stack_start) {
guard_start = thread->arch.priv_stack_start -
guard_start = thread->arch.priv_stack_start - guard_size;

__ASSERT((u32_t)&z_priv_stacks_ram_start <= guard_start,
"Guard start: (0x%x) below privilege stacks boundary: (0x%x)",
guard_start, (u32_t)&z_priv_stacks_ram_start);

0 comments on commit e82004e

Please sign in to comment.
You can’t perform that action at this time.