Skip to content
Snippets Groups Projects
Commit fcfa696b authored by Rob Herring's avatar Rob Herring Committed by Albert ARIBAUD
Browse files

ARM: increase lmb stack space reservation to 4KB


The bootm initrd image copy to ram can collide with the stack in cases
where the print buffer size is large (i.e. 1K). The result is intermittent
initrd decompression errors depending on the initrd size MOD 4KB since
the initrd start address is 4KB aligned.

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 995b72dd
No related branches found
No related tags found
No related merge requests found
...@@ -69,8 +69,8 @@ void arch_lmb_reserve(struct lmb *lmb) ...@@ -69,8 +69,8 @@ void arch_lmb_reserve(struct lmb *lmb)
sp = get_sp(); sp = get_sp();
debug("## Current stack ends at 0x%08lx ", sp); debug("## Current stack ends at 0x%08lx ", sp);
/* adjust sp by 1K to be safe */ /* adjust sp by 4K to be safe */
sp -= 1024; sp -= 4096;
lmb_reserve(lmb, sp, lmb_reserve(lmb, sp,
gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size - sp); gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size - 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