summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-02-24 22:11:45 -0600
committerAaron Durbin <adurbin@google.com>2014-03-03 19:50:10 +0100
commite58a24b1b598383eab918dac03be4d7122bf0ac5 (patch)
tree993d1a0ce4e8c95db5db102eb8f2ffcb1268e56d /src/include
parent6086e63a79576a1c7d8d06c2413fef34a65c94ba (diff)
downloadcoreboot-e58a24b1b598383eab918dac03be4d7122bf0ac5.tar.xz
selfboot: store bounce buffer in struct payload
In order to break the dependency on selfboot for jumping to payload the bounce buffer location needs to be communicated. Therefore, add the bounce buffer to struct payload. Change-Id: I9d9396e5c5bfba7a63940227ee0bdce6cba39578 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5299 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/payload_loader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/payload_loader.h b/src/include/payload_loader.h
index 3dde2f7626..73b28bff8f 100644
--- a/src/include/payload_loader.h
+++ b/src/include/payload_loader.h
@@ -22,14 +22,16 @@
#include <stdint.h>
#include <stddef.h>
-struct payload_backing_store {
+struct buffer_area {
void *data;
size_t size;
};
struct payload {
const char *name;
- struct payload_backing_store backing_store;
+ struct buffer_area backing_store;
+ /* Used when payload wants memory coreboot ramstage is running at. */
+ struct buffer_area bounce;
void *entry;
};