diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/selfboot.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c index 42f7efcc28..4046649522 100644 --- a/src/lib/selfboot.c +++ b/src/lib/selfboot.c @@ -350,6 +350,15 @@ static int payload_targets_usable_ram(struct segment *head) if (payload_arch_usable_ram_quirk(ptr->s_dstaddr, ptr->s_memsz)) continue; + if (arch_supports_bounce_buffer() && + bootmem_region_usable_with_bounce(ptr->s_dstaddr, + ptr->s_memsz)) { + printk(BIOS_DEBUG, + "Payload is loaded over non-relocatable " + "ramstage. Will use bounce-buffer.\n"); + return 1; + } + /* Payload segment not targeting RAM. */ printk(BIOS_ERR, "SELF Payload doesn't target RAM:\n"); printk(BIOS_ERR, "Failed Segment: 0x%lx, %lu bytes\n", |