static void find_fsp_hob_update_mrc(void *unused) { void *hob_list_ptr; /* 0x0000: Print all types */ hob_list_ptr = get_hob_list(); #if IS_ENABLED(CONFIG_DISPLAY_HOBS) print_hob_type_structure(0x000, hob_list_ptr); #endif #if IS_ENABLED(CONFIG_ENABLE_MRC_CACHE) if (save_mrc_data(hob_list_ptr)) update_mrc_cache(NULL); else printk(BIOS_DEBUG, "Not updating MRC data in flash.\n"); #endif }
static void find_fsp_hob_update_mrc(void *unused) { /* Set the global HOB list pointer */ FspHobListPtr = (void*)*((u32*) cbmem_find(CBMEM_ID_HOB_POINTER)); if (!FspHobListPtr){ printk(BIOS_ERR, "ERROR: Could not find FSP HOB pointer in CBFS!\n"); } else { /* 0x0000: Print all types */ print_hob_type_structure(0x000, FspHobListPtr); #if IS_ENABLED(CONFIG_ENABLE_MRC_CACHE) if (save_mrc_data(FspHobListPtr)) update_mrc_cache(NULL); else printk(BIOS_DEBUG,"Not updating MRC data in flash.\n"); #endif } }
void cbmem_post_handling(void) { update_mrc_cache(); }