]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Reorder x86's post relocation memory layout
authorGabe Black <gabeblack@chromium.org>
Sat, 3 Nov 2012 11:41:24 +0000 (11:41 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:41 +0000 (14:30 -0800)
commit32f98735f9ada2bcfb114088f6226be8a22943fa
tree005937e3c76bd22e630d257da68e47dac7435725
parent8313315b9ab3a130784a2a7d0c4f329808690c0b
x86: Reorder x86's post relocation memory layout

This changes the layout in decreasing addresses from:

1. Stack
2. Sections in the image
3. Heap

to

1. Sections in the image
2. Heap
3. Stack

This allows the stack to grow significantly more since it isn't constrained by
the other u-boot areas. More importantly, the generic memory wipe code assumes
that the stack is the lowest addressed area used by the main part of u-boot.
In the original layout, that means that u-boot tramples all over itself. In
the new layout, it works.

Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/init_helpers.c