summaryrefslogtreecommitdiff
path: root/chip/it83xx
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2022-06-08 11:09:35 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-09 14:23:19 +0000
commit9e82920e70ea835ec0744eb666a108f265f287fb (patch)
tree209438b3e3a66a163e403a4d5eee93a857d9047d /chip/it83xx
parentadae86b9387e261919d5e9921814f0d8f31f49fa (diff)
downloadchrome-ec-9e82920e70ea835ec0744eb666a108f265f287fb.tar.gz
riscv: it8xxx2: pull __switch_task function into ram_code_ilm0 section
The ram_code section will out of space once mul instruction workaround is enabled. This change pulls the function into the second ram code section. BUG=b:235297478 BRANCH=asurada,cherry,icarus TEST=- buildall - Check map file, the function is in the ram_code_ilm0 section. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I236caf2261a16edf25185b2442d126ec6ed7ef41 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3686728 Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'chip/it83xx')
-rw-r--r--chip/it83xx/config_chip_it8xxx2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/it83xx/config_chip_it8xxx2.h b/chip/it83xx/config_chip_it8xxx2.h
index d06aa8d204..8716380f29 100644
--- a/chip/it83xx/config_chip_it8xxx2.h
+++ b/chip/it83xx/config_chip_it8xxx2.h
@@ -6,6 +6,8 @@
#ifndef __CROS_EC_CONFIG_CHIP_IT8XXX2_H
#define __CROS_EC_CONFIG_CHIP_IT8XXX2_H
+#define __RAM_CODE_ILM0_SECTION_NAME ".ram_code_ilm0"
+
/* CPU core BFD configuration */
#include "core/riscv-rv32i/config_core.h"