From d1f420697ce6ede404474d1110e6da76931bc3a2 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 19 Mar 2019 15:53:13 -0700 Subject: [PATCH] arc: fix build error when MPU guards are enabled Incorrect member name of struct k_thread. Signed-off-by: Andrew Boie --- arch/arc/core/mpu/arc_mpu_v3_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/core/mpu/arc_mpu_v3_internal.h b/arch/arc/core/mpu/arc_mpu_v3_internal.h index 0d8b2567dd3..db467aa7d73 100644 --- a/arch/arc/core/mpu/arc_mpu_v3_internal.h +++ b/arch/arc/core/mpu/arc_mpu_v3_internal.h @@ -389,7 +389,7 @@ void arc_core_mpu_configure_thread(struct k_thread *thread) _mpu_reset_dynamic_regions(); #if defined(CONFIG_MPU_STACK_GUARD) #if defined(CONFIG_USERSPACE) - if ((thread->thread_base.user_options & K_USER) != 0) { + if ((thread->base.user_options & K_USER) != 0) { /* the areas before and after the user stack of thread is * kernel only. These area can be used as stack guard. * -----------------------