aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/selfboot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/boot/selfboot.c b/src/boot/selfboot.c
index 99b1493ed7..67603f07db 100644
--- a/src/boot/selfboot.c
+++ b/src/boot/selfboot.c
@@ -146,6 +146,11 @@ static int valid_area(struct lb_memory *mem, unsigned long buffer,
}
}
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, " [0x%016lx, 0x%016lx)\n", start, end);
printk(BIOS_ERR, "Ram areas\n");