blob: 1b46403eb70ef9a5ce7fa027638160e6dadc6760 [file] [log] [blame]
Angel Ponsf23ae0b2020-04-02 23:48:12 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Rudolph1af89232018-11-11 12:50:51 +01002
3#include <bootblock_common.h>
4#include <console/console.h>
5#include <cpu/x86/bist.h>
6
Patrick Rudolph1af89232018-11-11 12:50:51 +01007asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist)
8{
9 post_code(0x05);
10
11 /* Halt if there was a built in self test failure */
12 if (bist) {
13 console_init();
14 report_bist_failure(bist);
15 }
16
17 /* Call lib/bootblock.c main */
Kyösti Mälkki101ef0b2019-08-18 06:58:42 +030018 bootblock_main_with_basetime(base_timestamp);
Patrick Rudolph1af89232018-11-11 12:50:51 +010019}