summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2020-11-19 17:04:38 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-20 02:02:53 +0000
commit998ddb3f4adeb84ff6db85bdb6dab8c2baee9ff9 (patch)
tree6e76dc82094d48b91f2d4290c88a2a4a1d70e133
parent387158750a3a77ec535c33d1d92377880d3bfd9a (diff)
downloadchrome-ec-998ddb3f4adeb84ff6db85bdb6dab8c2baee9ff9.tar.gz
chip/it83xx: move __RAM_CODE_SECTION_NAME
Moves __RAM_CODE_SECTION_NAME from registers.h to config_chip.h. Or switch.S cannot see the macro. BRANCH=none BUG=none TEST=1. make BOARD=asurada 2. grep __switch_task build/asurada/RW/ec.RW.smap Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Change-Id: I1ef272c2e2181a88e4f53dc3024330a1a26c0688 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2549342 Reviewed-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--chip/it83xx/config_chip.h2
-rw-r--r--chip/it83xx/registers.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/chip/it83xx/config_chip.h b/chip/it83xx/config_chip.h
index 2cc683ba20..2f552c794a 100644
--- a/chip/it83xx/config_chip.h
+++ b/chip/it83xx/config_chip.h
@@ -121,4 +121,6 @@
#define GPIO_PIN(port, index) GPIO_##port, BIT(index)
#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m)
+#define __RAM_CODE_SECTION_NAME ".ram_code"
+
#endif /* __CROS_EC_CONFIG_CHIP_H */
diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h
index 9c3583ca4e..166b690404 100644
--- a/chip/it83xx/registers.h
+++ b/chip/it83xx/registers.h
@@ -11,7 +11,6 @@
#include "common.h"
#include "compile_time_macros.h"
-#define __RAM_CODE_SECTION_NAME ".ram_code"
#define __ram_code __attribute__((section(__RAM_CODE_SECTION_NAME)))
/* IRQ numbers */