summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2012-09-09 19:14:45 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-08 19:40:58 +0100
commit1fc346179262f4d4b0ce2f97970f775407a39a1c (patch)
tree42c319c833882f0ec6b5d3d6e61a08d31858d672 /src/drivers
parentb6e97b19ae6a68556838c9801c7824302d72151f (diff)
downloadcoreboot-1fc346179262f4d4b0ce2f97970f775407a39a1c.tar.xz
Log unexpected post code from the previous boot
Read out the post code from the previous boot and log it if the code is not one of the expected values. Test: 1) interrupt the boot of the system, this is easiest with warm reset button when servo is attached 2) check the event log with mosys 65 | 2012-09-09 12:32:11 | Last post code in previous boot | 0x9d Change-Id: Id418f4c0cf005a3e97b8c63de67cb9a09bc57384 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/1744 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/elog/elog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c
index 748adafcf3..2f6beefd3f 100644
--- a/src/drivers/elog/elog.c
+++ b/src/drivers/elog/elog.c
@@ -813,6 +813,11 @@ int elog_init(void)
elog_add_event_dword(ELOG_TYPE_BOOT, boot_count_read());
#endif
+#if CONFIG_CMOS_POST && !defined(__SMM__)
+ /* Check and log POST codes from previous boot */
+ cmos_post_log();
+#endif
+
return 0;
}