summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpu/x86/mirror_payload.c8
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));
}