coreboot: use struct payload for selfload()

In order to encapsulate more data for self loading use struct
payload as the type. That way modifications to what is needed
for payload loading does not introduce more global variables.

Change-Id: I5b8facd7881e397ca7de1c04cec747fc1dce2d5f
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5298
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>
This commit is contained in:
Aaron Durbin
2014-02-24 21:50:24 -06:00
committed by Aaron Durbin
parent 1322d7f9d5
commit 6086e63a79
3 changed files with 8 additions and 7 deletions

View File

@@ -54,8 +54,7 @@ struct payload_loader_ops {
/* Defined in src/lib/selfboot.c */
struct lb_memory;
struct cbfs_payload;
void *selfload(struct lb_memory *mem, struct cbfs_payload *payload);
void *selfload(struct lb_memory *mem, struct payload *payload);
void selfboot(void *entry);
#endif /* PAYLOAD_LOADER_H */