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:
parent
5fda25af06
commit
37cc2ccc0f
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue