summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/system.c b/common/system.c
index eaaa9c664b..6da5b538c7 100644
--- a/common/system.c
+++ b/common/system.c
@@ -388,6 +388,7 @@ void system_disable_jump(void)
#ifdef CONFIG_MPU
if (system_is_locked()) {
+#ifndef CONFIG_ZEPHYR
int ret;
enum ec_image __attribute__((unused)) copy;
@@ -443,6 +444,7 @@ void system_disable_jump(void)
return;
}
#endif /* !CONFIG_EXTERNAL_STORAGE */
+#endif /* !CONFIG_ZEPHYR */
/* All regions were configured successfully, enable MPU */
mpu_enable();