summaryrefslogtreecommitdiff
path: root/common/motion_sense.c
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2019-10-01 17:24:55 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-02 10:37:24 +0000
commit8989576dae8b5f45d2b591b5d76bb320a5ecffb1 (patch)
tree1292ceb33d06cda253ffe5fdd3c8667e4ade9206 /common/motion_sense.c
parent304089eb376b0f36d9cd179a10f1c65e7faf501a (diff)
downloadchrome-ec-8989576dae8b5f45d2b591b5d76bb320a5ecffb1.tar.gz
core/riscv-rv32i: misc fixes
1. The end of text section is 4-byte aligned. We found that rodata section will be shifted 2 bytes in binary file if compressed instruction (16-bit instruction) is enabled. So we fix it. 2. Ensure the scratchpad is behind system stack. So the guard value in scratchpad that we filled in at task initialization would not get overwrite on first context switch (Because we will change to use system stack in ISR if SP is greater than the end of system stack). 3. Put some task functions into __ram_code section to fill up the gap. BUG=none BRANCH=none TEST=This change saves 1408 bytes space at RO image and improves ~10ms boot time. Before the change: 173516 bytes in flash still available on it83xx_evb RO > [0.028248 low power idle task started] After the change: 174924 bytes in flash still available on it83xx_evb RO > [0.018774 low power idle task started] Change-Id: I32506383aa63424f12794fb543c51b0485bace8f Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1831931 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'common/motion_sense.c')
0 files changed, 0 insertions, 0 deletions