Commit 6445a305 authored by Eric Cooper's avatar Eric Cooper Committed by Albert ARIBAUD
Browse files

ARM: fix stack pointer adjustment in board_init_f()

Since addr_sp is a byte address, it should be adjusted by 12 here.
Signed-off-by: default avatarEric Cooper <>
Cc: Albert ARIBAUD <>
Acked-by: default avatarWolfgang Denk <>
parent 74652cf6
......@@ -399,7 +399,7 @@ void board_init_f (ulong bootflag)
/* leave 3 words for abort-stack */
addr_sp -= 3;
addr_sp -= 12;
/* 8-byte alignment for ABI compliance */
addr_sp &= ~0x07;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment