x86: Support machines with >4GB of RAM
authorSimon Glass <sjg@chromium.org>
Mon, 2 Mar 2015 19:40:49 +0000 (12:40 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Apr 2015 01:27:40 +0000 (19:27 -0600)
commit892ff8e972efc7d4f42750e4fdbb2c2fefb78229
tree04c9e2fb3ea8157b231dfca85d29412c281051ec
parent4564faeafbf11feb839e2e3f927be2f1a919ba96
x86: Support machines with >4GB of RAM

Some systems have more than 4GB of RAM. U-Boot can only place things below
4GB so any memory above that should not be used. Ignore any such memory so
that the memory size will not exceed the maximum.

This prevents gd->ram_size exceeding 4GB which causes problems for PCI
devices which use DMA.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
arch/x86/cpu/coreboot/sdram.c