summaryrefslogtreecommitdiff
path: root/src/cpu/qemu-x86/bootblock.c
blob: 1b46403eb70ef9a5ce7fa027638160e6dadc6760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */

#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 */
	bootblock_main_with_basetime(base_timestamp);
}