diff options
author | Yuval Peress <peress@chromium.org> | 2021-01-15 12:06:31 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-03 23:49:02 +0000 |
commit | 41f52b709177f7ddff01f5b7a568c663bc495897 (patch) | |
tree | 147857c0886e21b1a8d62c2eef0b8c24dd548ce5 /zephyr/shim/src/tasks.c | |
parent | 236e03723b4eb389a7846257ac5b6fb9e2faab5c (diff) | |
download | chrome-ec-41f52b709177f7ddff01f5b7a568c663bc495897.tar.gz |
zephyr: flash/system: enable common/flash.c & common/system.c
Bring both flash.c and system.c into the build.
zephyr/shim/src/system.c now includes only code that is needed
to stub out the chip specific system.c implementation in
platform/ec (which is now using the devicetree values).
BRANCH=none
BUG=b:176828988, b:174481378
TEST=zmake testall
TEST=build volteer, flash, and test flashinfo.
Cq-Depend: chromium:2631353
Change-Id: I5c542fca01dcc4af98401bcbbf402e579cd45e36
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649463
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/src/tasks.c')
-rw-r--r-- | zephyr/shim/src/tasks.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/shim/src/tasks.c b/zephyr/shim/src/tasks.c index 435c0d0f55..b8406dd1e6 100644 --- a/zephyr/shim/src/tasks.c +++ b/zephyr/shim/src/tasks.c @@ -224,3 +224,17 @@ int init_signals(const struct device *unused) return 0; } SYS_INIT(init_signals, POST_KERNEL, 50); + +int task_start_called(void) +{ + return 1; +} + +void interrupt_disable(void) +{ + /* + * TODO (b:174481378) system.c needed an implementation of this. Though + * it's not yet clear where we call interrupt_enable() from. These two + * calls should be replaced with irq_lock and irq_unlock. + */ +} |