From 1102e46ecfeb3f30591df02c1647d69c00e9f419 Mon Sep 17 00:00:00 2001 From: Kevin K Wong Date: Wed, 2 Mar 2016 11:16:51 -0800 Subject: 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 Signed-off-by: Kevin K Wong Reviewed-on: https://chromium-review.googlesource.com/331653 Reviewed-by: Mulin Chao Reviewed-by: Shawn N --- core/cortex-m/ec.lds.S | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1