powerpc, mpc8xx: clear top of stack
Reported-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
This commit is contained in:
committed by
Tom Rini
parent
ed47097a04
commit
71c743c5f7
@@ -144,9 +144,11 @@ in_flash:
|
||||
ori r2, r2, CONFIG_SYS_DER@l
|
||||
mtspr DER, r2
|
||||
|
||||
/* set up the stack in internal DPRAM */
|
||||
/* set up the stack on top of internal DPRAM */
|
||||
lis r3, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE)@h
|
||||
ori r3, r3, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE)@l
|
||||
stw r0, -4(r3)
|
||||
stw r0, -8(r3)
|
||||
addi r1, r3, -8
|
||||
|
||||
bl board_init_f_alloc_reserve
|
||||
|
||||
Reference in New Issue
Block a user