summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-03-09 14:15:02 +0000
committerCommit Bot <commit-bot@chromium.org>2022-03-16 18:03:23 +0000
commit43500fe3d58fc9133923065a89fe4ccc8ba8221d (patch)
tree942333e77747be38107ad23a62bb3ceedf12440f
parentf670792c75b531959010669b1deb2aeb987c974c (diff)
downloadchrome-ec-43500fe3d58fc9133923065a89fe4ccc8ba8221d.tar.gz
zephyr: enable unaligned access trap
ECOS used to have this by default and it's needed to pass the firmware_ECSharedMem FAFT test. This required adding arch specific config overrides to match https://github.com/zephyrproject-rtos/zephyr/blob/main/arch/Kconfig#L12 behavior. BRANCH=none BUG=b:223234903 TEST=ran on volteer, crashes without -mno-unaligned-access TEST=crash unaligned console command TEST=zmake -j2 configure -b volteer TEST=zmake -j2 configure -b it8xxx2_evb Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Cq-Depend: chromium:3519053 Change-Id: I0920128279fbc644741f1163aa1107ec9fb6b558 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3516253 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--zephyr/Kconfig.defaults2
-rw-r--r--zephyr/Kconfig.defaults-arm8
2 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/Kconfig.defaults b/zephyr/Kconfig.defaults
index f02b99b467..4bbae693f3 100644
--- a/zephyr/Kconfig.defaults
+++ b/zephyr/Kconfig.defaults
@@ -17,3 +17,5 @@ config GPIO
config SHELL_PROMPT_UART
default "ec:~$ "
+
+orsource "Kconfig.defaults-$(ARCH)"
diff --git a/zephyr/Kconfig.defaults-arm b/zephyr/Kconfig.defaults-arm
new file mode 100644
index 0000000000..4dddf87304
--- /dev/null
+++ b/zephyr/Kconfig.defaults-arm
@@ -0,0 +1,8 @@
+# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# ARM specific Kconfig overrides.
+
+config TRAP_UNALIGNED_ACCESS
+ default y