diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2017-01-12 11:16:06 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-30 16:48:41 -0800 |
commit | 93951a491dd00e20addc1ff99c2896bb9752e665 (patch) | |
tree | 557f38dafa66f01afde512970495af7005fe7826 /core/nds32 | |
parent | 7cbb815732d7434f5985d3b50a869aa71ba5c507 (diff) | |
download | chrome-ec-93951a491dd00e20addc1ff99c2896bb9752e665.tar.gz |
system: Use stored size in image_data for determining image_used
Image used size is now part of the image_data struct present in all
images at a fixed offset, so use it rather than scanning from the end of
the image.
BUG=chromium:577915
TEST=Verify on kevin + lars + lars_pd that system_get_image_used() returns
the same value as the old implementation, for both RO and RW images.
BRANCH=None
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Ic8db5c706d82f7ca2ded2e90129747e7fbefdb38
Reviewed-on: https://chromium-review.googlesource.com/427959
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/nds32')
-rw-r--r-- | core/nds32/ec.lds.S | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S index 978f652815..735d4e5c8b 100644 --- a/core/nds32/ec.lds.S +++ b/core/nds32/ec.lds.S @@ -218,17 +218,7 @@ SECTIONS } > IRAM - .flash.tag : { - /* Tag at end of firmware image so that we can find the image size. - * This may be overwritten by the shared memory buffer; that's ok - * because we only use it to find the image size in flash. */ - . = ALIGN(4); - BYTE(0x45); - BYTE(0x4e); - BYTE(0x44); - BYTE(0xea); - /* NOTHING MAY GO IN FLASH AFTER THIS! */ - } >FLASH + /* TODO: Add __image_size. */ #ifdef CONFIG_LPC .h2ram (NOLOAD) : { |