summaryrefslogtreecommitdiff
path: root/core/minute-ia/ec.lds.S
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2018-10-23 23:03:46 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-10-26 00:41:13 -0700
commitdfed287068488a70d13bafec0c50bc471b00d31c (patch)
tree6befd906a5d0e8fdfd812b90eb9f3d6bde9302c7 /core/minute-ia/ec.lds.S
parente260ea92719bd0462394a2aa4fe05e163ea02306 (diff)
downloadchrome-ec-dfed287068488a70d13bafec0c50bc471b00d31c.tar.gz
atlas_ish: implement __shared_mem_buf
when building the atlas_ish using emerge, additional components are built that we weren't building previously. in particular test/utils was falling over due to a missing symbol. BUG=b:118355015 BRANCH=none TEST=tested in combination of a bunch of other patches, emerge-${BOARD} chromeos-base/chromeos-ec succeeds at building atlas_ish Change-Id: Icf588afae8ed5410e21db733a9132bbc23ed2310 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1297042 Commit-Ready: caveh jalali <caveh@chromium.org> Tested-by: caveh jalali <caveh@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'core/minute-ia/ec.lds.S')
-rw-r--r--core/minute-ia/ec.lds.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/minute-ia/ec.lds.S b/core/minute-ia/ec.lds.S
index 9da27de73b..dfaedad2ff 100644
--- a/core/minute-ia/ec.lds.S
+++ b/core/minute-ia/ec.lds.S
@@ -169,8 +169,19 @@ SECTIONS
__bss_end = .;
__bss_size_words = (__bss_end - __bss_start) / 4;
+
+ /*
+ * Shared memory buffer must be at the end of
+ * preallocated RAM, so it can expand to use all the
+ * remaining RAM.
+ */
+ __shared_mem_buf = .;
}
+ ASSERT((__shared_mem_buf + CONFIG_SHAREDMEM_MINIMUM_SIZE) <=
+ (CONFIG_RAM_BASE + CONFIG_RAM_SIZE),
+ "Not enough space for shared memory.")
+
/* TODO: Adjust __image_size to proper value for core minute-ia later */
__image_size = . - CONFIG_ISH_BOOT_START;