summaryrefslogtreecommitdiff
path: root/core/minute-ia/task.c
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2018-10-23 22:53:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-10-25 04:26:34 -0700
commited72b4560a505a5cf402f065b1be757f4ad807d0 (patch)
treecf75bff16b5c12d4ecafdfdba0980fca44981583 /core/minute-ia/task.c
parent00e3643672d4a3bf2edc47f81c2b9ab39fa0dd1e (diff)
downloadchrome-ec-ed72b4560a505a5cf402f065b1be757f4ad807d0.tar.gz
core/minute-ia: fix code for coreboot toolchain
this fixes some compilation issues when using the coreboot toolchain. BUG=b:118355015 BRANCH=none TEST=tested in combination of a bunch of other patches to get atlas_ish to build with the coreboot toolchain Change-Id: Id93822fa0a8112da45529b0ba4ab327b773a31d7 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1297039 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: caveh jalali <caveh@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'core/minute-ia/task.c')
-rw-r--r--core/minute-ia/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/minute-ia/task.c b/core/minute-ia/task.c
index 12f43b8b67..c96bde706f 100644
--- a/core/minute-ia/task.c
+++ b/core/minute-ia/task.c
@@ -96,7 +96,7 @@ static const struct {
uint32_t r0;
uint32_t pc;
uint16_t stack_size;
-} const tasks_init[] = {
+} tasks_init[] = {
TASK(IDLE, __idle, 0, IDLE_TASK_STACK_SIZE)
CONFIG_TASK_LIST
CONFIG_TEST_TASK_LIST
@@ -174,7 +174,7 @@ inline int in_interrupt_context(void)
return !!__in_isr;
}
-inline int get_interrupt_context(void)
+static inline int get_interrupt_context(void)
{
return 0;
}