summaryrefslogtreecommitdiff
path: root/chip/it83xx/config_chip_it8xxx2.h
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-10 11:08:29 +0000
commit7453254050089ab085eda60c6d21c387fc29414a (patch)
tree871b3c6dd966ea300d4901832913040eee3fd799 /chip/it83xx/config_chip_it8xxx2.h
parente310cbd92f5af22553bbec23a0f3e13ba5f4fd87 (diff)
downloadchrome-ec-7453254050089ab085eda60c6d21c387fc29414a.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> (cherry picked from commit 9e82920e70ea835ec0744eb666a108f265f287fb) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3697761 Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'chip/it83xx/config_chip_it8xxx2.h')
-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 52c5a88c7e..3f715380ac 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"