diff options
author | Aaron Durbin <adurbin@chromium.org> | 2015-05-19 16:32:54 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-06-02 14:09:47 +0200 |
commit | 5957bd75e31f8505c8dca13b281ac32e06bdf280 (patch) | |
tree | 3c57b41a1b2bf2091cfb09944a1467fee3db0fe3 | |
parent | f4e859b11c1e929069cb1669dc7e0c02efa7806e (diff) | |
download | coreboot-5957bd75e31f8505c8dca13b281ac32e06bdf280.tar.xz |
x86: fix mirror_payload()
The api to mirror_payload() was changed, but as no board
in coreboot.org selected MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING
this issue was missed. Update to using the prog functions.
Change-Id: I4037f5dc6059c0707e1bf38eb1fa3d1bbb408e2a
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10260
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
-rw-r--r-- | src/cpu/x86/mirror_payload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/x86/mirror_payload.c b/src/cpu/x86/mirror_payload.c index 697ec1bb50..6a46841687 100644 --- a/src/cpu/x86/mirror_payload.c +++ b/src/cpu/x86/mirror_payload.c @@ -24,7 +24,7 @@ #include <bootmem.h> #include <program_loading.h> -void mirror_payload(struct payload *payload) +void mirror_payload(struct prog *payload) { char *buffer; size_t size; @@ -34,8 +34,8 @@ void mirror_payload(struct payload *payload) const uintptr_t intra_cacheline_mask = cacheline_size - 1; const uintptr_t cacheline_mask = ~intra_cacheline_mask; - src = payload->backing_store.data; - size = payload->backing_store.size; + src = prog_start(payload); + size = prog_size(payload); /* * Adjust size so that the start and end points are aligned to a @@ -67,5 +67,5 @@ void mirror_payload(struct payload *payload) memcpy(buffer, src, size); /* Update the payload's backing store. */ - payload->backing_store.data = &buffer[alignment_diff]; + prog_set_area(payload, &buffer[alignment_diff], prog_size(payload)); } |