Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Gabe Black's avatar
    32f98735
    x86: Reorder x86's post relocation memory layout · 32f98735
    Gabe Black authored
    
    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>
    32f98735
    History
    x86: Reorder x86's post relocation memory layout
    Gabe Black authored
    
    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>