summaryrefslogtreecommitdiff
path: root/chip/g/loader
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2019-01-23 17:02:42 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-28 07:22:50 -0800
commitb8189096e5be33848372dca449d045c2ba25e812 (patch)
tree3dda00597282917177b588c54252d2733aeca809 /chip/g/loader
parent818bbeda2631a2121647630ebd73cef660347277 (diff)
downloadchrome-ec-b8189096e5be33848372dca449d045c2ba25e812.tar.gz
link_defs.h: Renames __ro_end to __data_lma_start.
The name of __ro_end is confusing. The variable is actually used as a label tagging that it is the starting address of .data LMA. Renames to __data_lma_start to be more decriptive. BRANCH=None TEST=make buildall -j BUG=b:122084384 Change-Id: I8990a2a1f3d0719739a8e649b881cb277fe5a9b8 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1433160 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'chip/g/loader')
-rw-r--r--chip/g/loader/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/loader/setup.c b/chip/g/loader/setup.c
index 106cdecb15..4d016aa5f6 100644
--- a/chip/g/loader/setup.c
+++ b/chip/g/loader/setup.c
@@ -29,7 +29,7 @@ void checkBuildVersion(void)
void unlockFlashForRW(void)
{
- uint32_t text_end = ((uint32_t)(&__ro_end) +
+ uint32_t text_end = ((uint32_t)(&__data_lma_start) +
(uint32_t)(&__data_end) -
(uint32_t)(&__data_start) +
CONFIG_FLASH_BANK_SIZE)