Skip to content
Snippets Groups Projects
Commit 32f98735 authored by Gabe Black's avatar Gabe Black Committed by Simon Glass
Browse files

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: default avatarGabe Black <gabeblack@google.com>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 8313315b
No related branches found
No related tags found
No related merge requests found
Loading
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