22 if (hdr->image_size > CONFIG_FSP_M_SIZE)
23 die(
"The FSP-M binary is %u bytes larger than the memory region"
24 " allocated for it. Increase FSP_M_SIZE to make it fit.\n",
25 hdr->image_size - CONFIG_FSP_M_SIZE);
29 if (hdr->image_revision == 1) {
39 if ((rev->
major != IMAGE_REVISION_MAJOR_VERSION) ||
40 (rev->
minor != IMAGE_REVISION_MINOR_VERSION)) {
43 IMAGE_REVISION_MAJOR_VERSION);
45 IMAGE_REVISION_MINOR_VERSION);
47 " build's FspmUpd.h\n");
50 if (rev->
major != IMAGE_REVISION_MAJOR_VERSION)
51 die(
"IMAGE_REVISION_MAJOR_VERSION mismatch, halting\nGoodbye now\n");
#define printk(level,...)
void __noreturn die(const char *fmt,...)
struct amd_image_revision __packed
void soc_validate_fspm_header(const struct fsp_header *hdr)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.