drivers/intel/fsp2_0: Verify HOBs returned by FspMemoryInit
Verify that FSP is properly returning: * HOB list pointer * FSP_BOOTLOADER_TOLUM_HOB * FSP_RESERVED_MEMORY_RESOURCE_HOB TEST=Build and run on Galileo Gen2 Change-Id: I23005d10f7f3ccf06a2e29dab5fa11c7ed79f187 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15850 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@ -42,9 +42,15 @@ void fsp_debug_after_memory_init(enum fsp_status status)
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_FSP_CALLS_AND_STATUS))
|
||||
printk(BIOS_DEBUG, "FspMemoryInit returned 0x%08x\n", status);
|
||||
|
||||
/* Display the HOBs */
|
||||
/* Verify that the HOB list pointer was set */
|
||||
if (fsp_get_hob_list() == NULL)
|
||||
die("ERROR - HOB list pointer was not returned!\n");
|
||||
|
||||
/* Display and verify the HOBs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_HOBS))
|
||||
fsp_display_hobs();
|
||||
if (IS_ENABLED(CONFIG_VERIFY_HOBS))
|
||||
fsp_verify_memory_init_hobs();
|
||||
|
||||
/* Display the MTRRs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_MTRRS))
|
||||
|
Reference in New Issue
Block a user