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>
This commit is contained in:
Arthur Heymans 2019-01-04 14:59:45 +01:00 committed by Kyösti Mälkki
parent d3d82e09fc
commit ad80e7f118
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}