diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-10-01 14:29:15 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-02 10:52:54 -0700 |
commit | bc50e0cabbd241118cbab95b7f202ae90b193a11 (patch) | |
tree | ef7c3e78d8fd54c6b1f382e31a9ac566f28e1634 /core/cortex-m/build.mk | |
parent | 56ce828309b2c7a15d032bd47b3deac39c7715ab (diff) | |
download | chrome-ec-bc50e0cabbd241118cbab95b7f202ae90b193a11.tar.gz |
Enable FPU support for Link EC
With this CL, if CONFIG_FPU is defined (only for Link, ATM), the EC task
switcher will enable CONTROL.FPCA and expect all stack contexts to include
floating point state as well as normal state (an additional 18 words).
To support this, we need to increase the allocated stack space for each
task. The stack sizes are already chosen empirically, so I'm just rounding
them up a bit.
BUG=chrome-os-partner:14766
BRANCH=Link
TEST=manual
There should be no noticeable change. If you run the EC command "taskinfo"
you'll see the increased size each thread's stack, but everything that was
working before should continue to work just fine.
The additional overhead required to load and store another 18 words on each
context switch is not really measurable (I tried).
Change-Id: Ibaca7d7a2565285f049fda6906f32761e83207af
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34391
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/cortex-m/build.mk')
-rw-r--r-- | core/cortex-m/build.mk | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/cortex-m/build.mk b/core/cortex-m/build.mk index 7a2f16e4e9..35ad2d0517 100644 --- a/core/cortex-m/build.mk +++ b/core/cortex-m/build.mk @@ -14,5 +14,4 @@ CFLAGS_CPU=-mcpu=cortex-m4 -mthumb -Os -mno-sched-prolog CFLAGS_CPU+=$(CFLAGS_FPU-y) core-y=cpu.o init.o panic.o switch.o task.o timer.o -core-$(CONFIG_FPU)+=fpu.o core-$(CONFIG_TASK_WATCHDOG)+=watchdog.o |