diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2016-03-02 11:16:51 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-11 15:17:28 -0800 |
commit | 1102e46ecfeb3f30591df02c1647d69c00e9f419 (patch) | |
tree | a6a5b22334830cb73dc09cd4b9c5af74d549918d | |
parent | d0523f15d2c20ceb26c4b5c4c3e097d8df15a845 (diff) | |
download | chrome-ec-1102e46ecfeb3f30591df02c1647d69c00e9f419.tar.gz |
core: fix unaligned access
without this, there could be unaligned access of __flash_lpfw_start
variable in system_hibernate function which causes exception.
BUG=none
BRANCH=none
TEST=make buildall, able to enter/exit EC hibernate
Change-Id: I6c0400fd88f3b815a42a70c2983a8f8ecd79b398
Signed-off-by: Divya Sasidharan <divya.s.sasidharan@intel.com>
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/331653
Reviewed-by: Mulin Chao <mlchao@nuvoton.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | core/cortex-m/ec.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 982f930d2f..24f3030354 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -93,9 +93,11 @@ SECTIONS STRINGIFY(OUTDIR/core/CORE/init.o) (.text) *(.text*) #ifdef CONFIG_EXTERNAL_STORAGE + . = ALIGN(4); __flash_lpfw_start = .; /* Entering deep idle FW for better power consumption */ KEEP(*(.lowpower_ram)) + . = ALIGN(4); __flash_lpfw_end = .; } > CDRAM AT > FLASH #else |