summaryrefslogtreecommitdiff
path: root/src/include/program_loading.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-03-20 10:20:15 -0500
committerAaron Durbin <adurbin@google.com>2015-03-31 19:31:57 +0200
commitebf2ed46211e0ccd82d11c34226eb578f9532a2a (patch)
tree4f6ee80302be89c88aa7dfa8d227231fec723487 /src/include/program_loading.h
parentfcfdff84f4ddd6fe7bf68c3bc84c0173911d13de (diff)
downloadcoreboot-ebf2ed46211e0ccd82d11c34226eb578f9532a2a.tar.xz
payload loading: remove passing of struct payload
There's no need to keep track of struct payload within the boot state machine. It is completely contained within the payload loader module. Change-Id: I16fcecf43d7fb41fc311955fdb82eabbd5c96b11 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/8836 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/include/program_loading.h')
-rw-r--r--src/include/program_loading.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/include/program_loading.h b/src/include/program_loading.h
index e071db9729..ca61c169d7 100644
--- a/src/include/program_loading.h
+++ b/src/include/program_loading.h
@@ -104,14 +104,11 @@ struct payload {
void *entry;
};
-/*
- * Load payload into memory and return pointer to payload structure. Returns
- * NULL on error.
- */
-struct payload *payload_load(void);
+/* Load payload into memory in preparation to run. */
+void payload_load(void);
/* Run the loaded payload. */
-void payload_run(const struct payload *payload);
+void payload_run(void);
/* Mirror the payload to be loaded. */
void mirror_payload(struct payload *payload);