diff options
-rw-r--r-- | src/include/console/post_codes.h | 8 | ||||
-rw-r--r-- | src/northbridge/intel/haswell/raminit.c | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h index df1d5e8837..0310db3958 100644 --- a/src/include/console/post_codes.h +++ b/src/include/console/post_codes.h @@ -229,6 +229,14 @@ #define POST_DEAD_CODE 0xee /** + * \brief Resume from suspend failed + * + * This post code is sent when the firmware is expected to resume it is + * unable to do so. + */ +#define POST_RESUME_FAILURE 0xef + +/** * \brief Final code before OS resumes * * Called right before jumping to the OS resume vector. diff --git a/src/northbridge/intel/haswell/raminit.c b/src/northbridge/intel/haswell/raminit.c index a90b360116..e916c5e8a5 100644 --- a/src/northbridge/intel/haswell/raminit.c +++ b/src/northbridge/intel/haswell/raminit.c @@ -156,7 +156,9 @@ void sdram_initialize(struct pei_data *pei_data) /* If MRC data is not found we cannot continue S3 resume. */ if (pei_data->boot_mode == 2 && !pei_data->mrc_input) { - printk(BIOS_DEBUG, "Giving up in sdram_initialize: No MRC data\n"); + post_code(POST_RESUME_FAILURE); + printk(BIOS_DEBUG, "Giving up in sdram_initialize: " + "No MRC data\n"); outb(0x6, 0xcf9); while(1) { hlt(); |