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
						Aaron Durbin
					
				
			
			
				
	
			
			
			
						parent
						
							3b631615f6
						
					
				
				
					commit
					3948e5392b
				
			| @@ -57,6 +57,9 @@ void *cbfs_load_optionrom(struct cbfs_media *media, uint16_t vendor, | ||||
| 			  uint16_t device, void * dest); | ||||
| void *cbfs_load_stage(struct cbfs_media *media, const char *name); | ||||
| void *cbfs_load_stage_by_offset(struct cbfs_media *media, ssize_t offset); | ||||
| /* Load a stage from a prog structure. Returns < 0 on error. 0 on success. */ | ||||
| struct prog; | ||||
| int cbfs_load_prog_stage(struct cbfs_media *media, struct prog *prog); | ||||
|  | ||||
| /* Simple buffer for streaming media. */ | ||||
| struct cbfs_simple_buffer { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user