]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00170150 [MX6]Fix suspend/resume fail of debug kernel
authorAnson Huang <b20788@freescale.com>
Tue, 13 Dec 2011 08:43:37 +0000 (16:43 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:37 +0000 (08:33 +0200)
Need to push and pop all registers, otherwise, some registers
will be modified in the function call, add protection to avoid
this scenario.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-mx6/mx6q_suspend.S

index b1700433d1b439ef9c328fa1e4ef5923558d7389..bbda5aa367684079c8b796c5ee78a7a8be211838 100644 (file)
@@ -559,8 +559,11 @@ use_ttbr0:
        bx      r1
 mmu_on_label:
        mov     r8, lr
+       push    {r0}
+
        /* Set up the per-CPU stacks */
        bl      cpu_init
+       pop     {r0}
 
 #ifdef CONFIG_CACHE_L2X0
        ldr r2, =L2_BASE_ADDR