From ad80e7f11840ab3828cc594b212ec90bb5810986 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 4 Jan 2019 14:59:45 +0100 Subject: cpu/intel/car/bootblock.c: Report BIST failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The result is saved in a static variable and is reported when the console is initialised. Change-Id: I5f0f9edce68634adfe4a77a0d2c0bf3d7cd4e78e Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/30671 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/cpu/intel/car/bootblock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cpu') diff --git a/src/cpu/intel/car/bootblock.c b/src/cpu/intel/car/bootblock.c index 6bc041443e..d751d86272 100644 --- a/src/cpu/intel/car/bootblock.c +++ b/src/cpu/intel/car/bootblock.c @@ -13,9 +13,13 @@ #include #include +#include + +static uint32_t saved_bist; asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist) { + saved_bist = bist; /* Call lib/bootblock.c main */ bootblock_main_with_timestamp(base_timestamp, NULL, 0); } @@ -33,4 +37,6 @@ void bootblock_soc_early_init(void) void bootblock_soc_init(void) { + /* Halt if there was a built in self test failure */ + report_bist_failure(saved_bist); } -- cgit v1.2.3