summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-02-24 22:27:39 -0600
committerAaron Durbin <adurbin@google.com>2014-03-03 19:50:32 +0100
commit7d1996cc4af563f614455db23fe91a6feccd2560 (patch)
treed8bbaeb40898a3dbf197cbca991acf9962b7c7f9 /src/include
parente58a24b1b598383eab918dac03be4d7122bf0ac5 (diff)
downloadcoreboot-7d1996cc4af563f614455db23fe91a6feccd2560.tar.xz
coreboot: introduce arch_payload_run()
The selfboot() function relied on global variables within the selfboot.c compilation unit. Now that the bounce buffer is a part of struct payload use a new architecture-specific arch_payload_run() function for jumping to the payload. selfboot() can then be removed. Change-Id: Icec74942e94599542148561b3311ce5096ac5ea5 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5300 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/payload_loader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/payload_loader.h b/src/include/payload_loader.h
index 73b28bff8f..4948afb6b8 100644
--- a/src/include/payload_loader.h
+++ b/src/include/payload_loader.h
@@ -44,6 +44,9 @@ struct payload *payload_load(void);
/* Run the loaded payload. */
void payload_run(const struct payload *payload);
+/* architecture specific function to run payload. */
+void arch_payload_run(const struct payload *payload);
+
/* Payload loading operations. */
struct payload_loader_ops {
const char *name;
@@ -57,6 +60,5 @@ struct payload_loader_ops {
/* Defined in src/lib/selfboot.c */
struct lb_memory;
void *selfload(struct lb_memory *mem, struct payload *payload);
-void selfboot(void *entry);
#endif /* PAYLOAD_LOADER_H */