summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/gen83xx/start/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/gen83xx/start/start.S')
-rw-r--r--bsps/powerpc/gen83xx/start/start.S11
1 files changed, 7 insertions, 4 deletions
diff --git a/bsps/powerpc/gen83xx/start/start.S b/bsps/powerpc/gen83xx/start/start.S
index 532210e4b9..943ced4d59 100644
--- a/bsps/powerpc/gen83xx/start/start.S
+++ b/bsps/powerpc/gen83xx/start/start.S
@@ -413,13 +413,16 @@ start_code_in_ram:
/* Read-write small data */
LA r13, _SDA_BASE_
- /* Clear cmdline */
+ /* Clear cmdline */
li r3, 0
- /* Set start stack pointer */
+ /*
+ * Initialize start stack. The stacks are statically allocated and
+ * properly aligned.
+ */
LA r1, _ISR_Stack_area_end
- stwu r3, -4(r1)
- stwu r3, -4(r1)
+ subi r1, r1, PPC_DEFAULT_CACHE_LINE_SIZE
+ stw r3, 0(r1)
/* Call the first C routine */
bl SYM (boot_card)