arch: arc: fix a bug in mpu driver

for mpu stack guard, after arc_core_mpu_configure,
it should return

Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
Wayne Ren 2018-08-03 16:29:41 +08:00 committed by Kumar Gala
parent 5fda25af06
commit 37cc2ccc0f

View file

@ -60,6 +60,7 @@ void configure_mpu_stack_guard(struct k_thread *thread)
arc_core_mpu_configure(THREAD_STACK_GUARD_REGION,
thread->arch.priv_stack_start - STACK_GUARD_SIZE,
STACK_GUARD_SIZE);
return;
}
#endif
arc_core_mpu_configure(THREAD_STACK_GUARD_REGION,