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:
parent
d3d82e09fc
commit
ad80e7f118
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue