post_code: add post code for failure to load next stage
Add a new post code, POST_INVALID_ROM, used when coreboot fails to locate or validate a resource that is stored in ROM. BUG=b:124401932 BRANCH=sarien TEST=build coreboot for sarien and arcada platforms Change-Id: Ie6de6590595d8fcdc57ad156237fffa03d5ead38 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32770 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
committed by
Duncan Laurie
parent
ba44a27f7f
commit
7006458777
@@ -141,13 +141,16 @@ static void load_postcar_cbfs(struct prog *prog, struct postcar_frame *pcf)
|
||||
};
|
||||
|
||||
if (prog_locate(prog))
|
||||
die("Failed to locate after CAR program.\n");
|
||||
die_with_post_code(POST_INVALID_ROM,
|
||||
"Failed to locate after CAR program.\n");
|
||||
if (rmodule_stage_load(&rsl))
|
||||
die("Failed to load after CAR program.\n");
|
||||
die_with_post_code(POST_INVALID_ROM,
|
||||
"Failed to load after CAR program.\n");
|
||||
|
||||
/* Set the stack pointer within parameters of the program loaded. */
|
||||
if (rsl.params == NULL)
|
||||
die("No parameters found in after CAR program.\n");
|
||||
die_with_post_code(POST_INVALID_ROM,
|
||||
"No parameters found in after CAR program.\n");
|
||||
|
||||
finalize_load(rsl.params, pcf->stack);
|
||||
|
||||
|
Reference in New Issue
Block a user