diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2017-11-29 18:00:22 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-30 07:09:47 -0800 |
commit | 0b1cea4aff91cae69e062cc024632715695087a5 (patch) | |
tree | 9f6044ba6cd62ac7bc4417d06d28298ce5c9a9c6 /core/nds32/task.c | |
parent | 72162f73bfcc9a63445126df83794e5e298f2810 (diff) | |
download | chrome-ec-0b1cea4aff91cae69e062cc024632715695087a5.tar.gz |
nds32: enable GCC LTO
- We have more flash space to use with nds32 toolchain GCC6.3.0,
so we enable a few console commands that were disabled previously.
And we also enable LTO to reduce the size of FW image.
- Put "__wait_evt" function into ram_code section to
fill the gap of flash and improving performance of code-fetch.
BUG=none
BRANCH=none
TEST=boot to kernel on reef_it8320.
Change-Id: I3b745ff80a57ef1163794864c39c22f7e1f86634
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/788712
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core/nds32/task.c')
-rw-r--r-- | core/nds32/task.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/nds32/task.c b/core/nds32/task.c index 54b7b5ed77..788f0c66bf 100644 --- a/core/nds32/task.c +++ b/core/nds32/task.c @@ -256,7 +256,8 @@ int get_sw_int(void) * * Also includes emulation of software triggering interrupt vector */ -void __ram_code syscall_handler(int desched, task_id_t resched, int swirq) +void __ram_code __keep syscall_handler(int desched, task_id_t resched, + int swirq) { /* are we emulating an interrupt ? */ if (swirq) { @@ -416,7 +417,7 @@ void end_irq_handler(void) #endif } -static uint32_t __wait_evt(int timeout_us, task_id_t resched) +static uint32_t __ram_code __wait_evt(int timeout_us, task_id_t resched) { task_ *tsk = current_task; task_id_t me = tsk - tasks; |