2020-04-02 23:48:12 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2018-11-11 12:50:51 +01:00
|
|
|
|
|
|
|
#include <bootblock_common.h>
|
|
|
|
#include <console/console.h>
|
|
|
|
#include <cpu/x86/bist.h>
|
|
|
|
|
|
|
|
asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist)
|
|
|
|
{
|
|
|
|
post_code(0x05);
|
|
|
|
|
|
|
|
/* Halt if there was a built in self test failure */
|
|
|
|
if (bist) {
|
|
|
|
console_init();
|
|
|
|
report_bist_failure(bist);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Call lib/bootblock.c main */
|
2019-08-18 05:58:42 +02:00
|
|
|
bootblock_main_with_basetime(base_timestamp);
|
2018-11-11 12:50:51 +01:00
|
|
|
}
|