Skip to content
Snippets Groups Projects
Commit 7de8a716 authored by Joakim Tjernlund's avatar Joakim Tjernlund Committed by Andy Fleming
Browse files

powerpc: Stack Pointer not properly aligned


The code first aligns the SP to 16 then subtract 8, making it
8 bytes aligned. Furthermore the initial stack frame not
quite correct either.

Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 89f42899
No related branches found
No related tags found
No related merge requests found
...@@ -521,9 +521,8 @@ void board_init_f(ulong bootflag) ...@@ -521,9 +521,8 @@ void board_init_f(ulong bootflag)
addr_sp -= 16; addr_sp -= 16;
addr_sp &= ~0xF; addr_sp &= ~0xF;
s = (ulong *) addr_sp; s = (ulong *) addr_sp;
*s-- = 0; *s = 0; /* Terminate back chain */
*s-- = 0; *++s = 0; /* NULL return address */
addr_sp = (ulong) s;
debug("Stack Pointer at: %08lx\n", addr_sp); debug("Stack Pointer at: %08lx\n", addr_sp);
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment