diff options
author | Yilun Lin <yllin@google.com> | 2019-04-11 12:51:51 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-13 01:31:44 -0700 |
commit | 3bf824742a20e1f31d180c3f97e26380d064dd48 (patch) | |
tree | 0033a6ab84ce5670cffa31396d4eef05468b15e3 | |
parent | 0f456193de59b6b6e1fb9c4b35a59c17d7343440 (diff) | |
download | chrome-ec-3bf824742a20e1f31d180c3f97e26380d064dd48.tar.gz |
link_defs.h: Should support __SECTION attr when enable DRAM section.
DRAM symbols should be specified with __SECTION(dram) so that they
can be put into DRAM sections.
TEST=None
BRANCH=None
BUG=b:122058243
Change-Id: Ib8ba9054f27016424faa37d8b20e1f7e93a58c9f
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1563870
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r-- | include/link_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/link_defs.h b/include/link_defs.h index 0f83d0173e..4dd0441824 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -116,7 +116,7 @@ extern void *__dram_bss_start; extern void *__dram_bss_end; /* Helper for special chip-specific memory sections */ -#ifdef CONFIG_CHIP_MEMORY_REGIONS +#if defined(CONFIG_CHIP_MEMORY_REGIONS) || defined(CONFIG_DRAM_BASE) #define __SECTION(name) __attribute__((section("." STRINGIFY(name) ".50_auto"))) #define __SECTION_KEEP(name) \ __keep __attribute__((section("." STRINGIFY(name) ".keep.50_auto"))) |