summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-04-08 13:40:45 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-09 05:25:45 +0000
commite64a35859c612b4cea23aabc4847dbe08a975857 (patch)
tree72409c6a8a87f87795bfd2bbb6865940804a16a4
parent62d4342002e79b6b778b74c1d3381a9500b995f9 (diff)
downloadchrome-ec-e64a35859c612b4cea23aabc4847dbe08a975857.tar.gz
zephyr: Stub out interrupt_disable_all() for tests
Stub out interrupt_disable_all() definition for tests to fix compiler warnings. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Id605aa41c9977f1b231779b1a29c769e4dd90335 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2816143 Commit-Queue: Yuval Peress <peress@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
-rw-r--r--include/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index ef86d821aa..854f2b3557 100644
--- a/include/system.h
+++ b/include/system.h
@@ -24,6 +24,8 @@
* because it leaves some (NMI and faults) still enabled.
*/
#define interrupt_disable_all() __asm__("cpsid i")
+#elif CONFIG_ZTEST
+#define interrupt_disable_all()
#endif
#else /* !CONFIG_ZEPHYR */
#define interrupt_disable_all() interrupt_disable()