mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-19 08:54:48 -04:00
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: Duncan Laurie <dlaurie@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
34d6057be1
commit
984d8b09fb
@ -60,6 +60,10 @@ int dram_init_f(void)
|
|||||||
struct memrange *memrange = &lib_sysinfo.memrange[i];
|
struct memrange *memrange = &lib_sysinfo.memrange[i];
|
||||||
unsigned long long end = memrange->base + memrange->size;
|
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)
|
if (memrange->type == CB_MEM_RAM && end > ram_size)
|
||||||
ram_size = end;
|
ram_size = end;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user