program loading: introduce struct prog
The struct prog serves as way to consolidate program loading. This abstraction can be used to perform more complicated execution paths such as running a program on a separate CPU after it has been loaded. Currently t124 and t132 need to do that in the boot path. Follow on patches will allow the platform to decide how to execute a particular program. Note: the vboot path is largely untouched because it's already broken in the coreboot.org tree. After getting all the necessary patches pushed then vboot will be fixed. Change-Id: Ic6e6fe28c5660fb41edee5fd8661eaf58222f883 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/8839 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
committed by
Aaron Durbin
parent
3b631615f6
commit
3948e5392b
@ -220,7 +220,7 @@ static int build_self_segment_list(
|
||||
struct segment *ptr;
|
||||
struct cbfs_payload_segment *segment, *first_segment;
|
||||
struct cbfs_payload *cbfs_payload;
|
||||
cbfs_payload = payload->backing_store.data;
|
||||
cbfs_payload = prog_start(&payload->prog);
|
||||
memset(head, 0, sizeof(*head));
|
||||
head->next = head->prev = head;
|
||||
first_segment = segment = &cbfs_payload->segments;
|
||||
|
Reference in New Issue
Block a user