Commit 5fcf8d1a authored by Patrick Doyle's avatar Patrick Doyle Committed by Alexandre Belloni

ARM: at91: pm: at91_pm_suspend_in_sram() must be 8-byte aligned

fncpy() requires that the source and the destination are both 8-byte
aligned.
Signed-off-by: default avatarPatrick Doyle <pdoyle@irobot.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Fixes: d94e688c ("ARM: at91/pm: move the copying the sram function to the sram initialization phase")
Cc: <stable@vger.kernel.org> # 4.1+
parent 6f112a08
......@@ -80,6 +80,8 @@ tmp2 .req r5
* @r2: base address of second SDRAM Controller or 0 if not present
* @r3: pm information
*/
/* at91_pm_suspend_in_sram must be 8-byte aligned per the requirements of fncpy() */
.align 3
ENTRY(at91_pm_suspend_in_sram)
/* Save registers on stack */
stmfd sp!, {r4 - r12, lr}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment