diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-01-04 14:59:45 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-08 15:37:18 +0000 |
commit | ad80e7f11840ab3828cc594b212ec90bb5810986 (patch) | |
tree | 2646db6d9f5e961f1dfa882670f9492ceb2087ae /src/cpu/intel/car | |
parent | d3d82e09fc477bc3c5b10a3aca20fe1490fa1fd9 (diff) |
cpu/intel/car/bootblock.c: Report BIST failures
The result is saved in a static variable and is reported when the
console is initialised.
Change-Id: I5f0f9edce68634adfe4a77a0d2c0bf3d7cd4e78e
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/30671
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/cpu/intel/car')
-rw-r--r-- | src/cpu/intel/car/bootblock.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <bootblock_common.h> #include <cpu/intel/car/bootblock.h> +#include <cpu/x86/bist.h> + +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); } |