]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: at91: pm: at91_pm_suspend_in_sram() must be 8-byte aligned
authorPatrick Doyle <pdoyle@irobot.com>
Fri, 16 Oct 2015 10:39:05 +0000 (12:39 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 19 Oct 2015 20:58:44 +0000 (22:58 +0200)
fncpy() requires that the source and the destination are both 8-byte
aligned.

Signed-off-by: Patrick Doyle <pdoyle@irobot.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Fixes: d94e688cae56 ("ARM: at91/pm: move the copying the sram function to the sram initialization phase")
Cc: <stable@vger.kernel.org> # 4.1+
arch/arm/mach-at91/pm_suspend.S

index 0d95f488b47a7fa40f7f837083e5b594c329dd65..a25defda3d226c98469c6150a001266aeec4c2fa 100644 (file)
@@ -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}