提交 984d8b09 编写于 作者: D Duncan Laurie 提交者: Simon Glass

x86: Ignore memory >4GB when parsing Coreboot tables

U-boot is unable to actually use that memory and it can
cause problems with relocation if it tries to.
Signed-off-by: NDuncan Laurie <dlaurie@chromium.org>
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 34d6057b
......@@ -60,6 +60,10 @@ int dram_init_f(void)
struct memrange *memrange = &lib_sysinfo.memrange[i];
unsigned long long end = memrange->base + memrange->size;
/* Ignore memory over 4GB, we can't use it. */
if (memrange->base > 0xffffffff)
continue;
if (memrange->type == CB_MEM_RAM && end > ram_size)
ram_size = end;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册