selfboot: Allow loading SeaBIOS into a reserved region in the lower 1MB
This fixes loading SeaBIOS when lower memory is reserved. Change-Id: Idbdcaf95f3307f97307f304d6d677406d059927d Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/732 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
e246b31121
commit
9ec8ed8a40
|
@ -146,6 +146,11 @@ static int valid_area(struct lb_memory *mem, unsigned long buffer,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == mem_entries) {
|
if (i == mem_entries) {
|
||||||
|
if (start < (1024*1024) && end <=(1024*1024)) {
|
||||||
|
printk(BIOS_DEBUG, "Payload (probably SeaBIOS) loaded"
|
||||||
|
" into a reserved area in the lower 1MB\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
printk(BIOS_ERR, "No matching ram area found for range:\n");
|
printk(BIOS_ERR, "No matching ram area found for range:\n");
|
||||||
printk(BIOS_ERR, " [0x%016lx, 0x%016lx)\n", start, end);
|
printk(BIOS_ERR, " [0x%016lx, 0x%016lx)\n", start, end);
|
||||||
printk(BIOS_ERR, "Ram areas\n");
|
printk(BIOS_ERR, "Ram areas\n");
|
||||||
|
|
Loading…
Reference in New Issue