mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 10:14:57 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user