diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-21 17:41:52 -0700 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-22 15:04:13 +0000 |
commit | 16d8f6c8bc985090fab9b416bf89d996115c3f93 (patch) | |
tree | a5863195b87a3f7db65c2ee01aa35f35f5cb8031 /core | |
parent | 33b7a5c512104aa184a4dd34fb1c895d53dbee2e (diff) | |
download | chrome-ec-16d8f6c8bc985090fab9b416bf89d996115c3f93.tar.gz |
Fix regression on linking address
On platform where the flash base address is non null (e.g. stm32), we need to
take it into account.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None
TEST=On Daisy, type "sysjump A" and "version" into the EC console
and observe that the commands succeed.
Change-Id: I95596d45f6970259d19d7063f6794fae0c400ab7
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/ec.lds.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 30a5446891..b1e9c71127 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -5,7 +5,7 @@ #include "config.h" #define FW_OFF_(section) CONFIG_FW_##section##_OFF -#define FW_OFF(section) FW_OFF_(section) +#define FW_OFF(section) (CONFIG_FLASH_BASE + FW_OFF_(section)) #define FW_SIZE_(section) CONFIG_FW_##section##_SIZE #define FW_SIZE(section) FW_SIZE_(section) |