aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/qemu-x86/bootblock.c
blob: a1b3a7626d44c7da6fb56bd5b5cf6ac112a43910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

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