x86: Override calculate_relocation_address to use the e820 map
authorGabe Black <gabeblack@chromium.org>
Mon, 3 Dec 2012 14:26:08 +0000 (14:26 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:42 +0000 (14:30 -0800)
commit112a575e498fe0c6bfbb4dbe3266d83f48d46a99
tree36e2ec96b1c57cdf8c8cbf1dd9fd8bbfc45b0f89
parentd65297b64d743105b18d912fa62627d6bf468c2f
x86: Override calculate_relocation_address to use the e820 map

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: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/sdram.c
boards.cfg