intel/broadwell: Fix refcode handling

Allow adding and executing a refcode binary.

Change-Id: I00e91a088a5695b42528e246d0ed642d988603e3
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: http://review.coreboot.org/10638
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Patrick Georgi
2015-06-22 22:26:45 +02:00
parent f1db074bc4
commit e6e94934e8
2 changed files with 20 additions and 2 deletions

View File

@ -43,7 +43,7 @@ static pei_wrapper_entry_t load_refcode_from_cache(void)
return (pei_wrapper_entry_t)prog_entry(&refcode);
}
static efi_wrapper_entry_t load_reference_code(void)
static pei_wrapper_entry_t load_reference_code(void)
{
struct prog prog =
PROG_INIT(ASSET_REFCODE, CONFIG_CBFS_PREFIX "/refcode");
@ -69,7 +69,7 @@ static efi_wrapper_entry_t load_reference_code(void)
/* Cache loaded reference code. */
stage_cache_add(STAGE_REFCODE, &prog);
return prog_entry(&prog);
return (pei_wrapper_entry_t)prog_entry(&prog);
}
void broadwell_run_reference_code(void)