Skip to content
  • Gabe Black's avatar
    x86: Override calculate_relocation_address to use the e820 map · 112a575e
    Gabe Black authored
    
    
    Because calculate_relocation_address now uses the e820 map, it will be able
    to avoid addresses over 32 bits and regions that are at high addresses but
    not big enough for U-Boot. It also means we can remove the hack which
    limitted U-Boot's idea of the size of memory to less than 4GB.
    
    Also take into account the space needed for the heap and stack, so we avoid
    picking a very small region those areas might overlap with something it
    shouldn't.
    
    Signed-off-by: default avatarGabe Black <gabeblack@chromium.org>
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    112a575e