diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-07 06:47:48 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-06-12 07:44:08 +0000 |
commit | 4f51b0f7fe81677f3cd205cd2820aee6fb78f1bc (patch) | |
tree | 7f5c12e8730944dd6a7983367244ecab3e8e49a1 /src/arch | |
parent | d022718001a7651d9d357a1a3359d07c13a0ad9d (diff) |
arch/x86: Fix payload loading via bounce-buffer
Fix regression (supposedly) after commit:
23d62dd lib/bootmem: Add more bootmem tags
Without RELOCATABLE_RAMSTAGE, payload is allowed to overwrite
memory regions of the running ramstage. This case is handled
gracefully via a bounce-buffer implementation in arch/x86/boot.c.
Change-Id: I1c9bbdb963a7210d0817a7a990a70a1e4fc03624
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/26935
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/boot.c b/src/arch/x86/boot.c index d157f96380..8a6592f189 100644 --- a/src/arch/x86/boot.c +++ b/src/arch/x86/boot.c @@ -203,7 +203,7 @@ static void jmp_payload(void *entry, unsigned long buffer, unsigned long size) int arch_supports_bounce_buffer(void) { - return 1; + return !IS_ENABLED(CONFIG_RELOCATABLE_RAMSTAGE); } int payload_arch_usable_ram_quirk(uint64_t start, uint64_t size) |