summaryrefslogtreecommitdiffstats
path: root/src/security/vboot/verstage.c
blob: e12c4cedeff1b4170469b268e87a2765429aa4a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#include <arch/exception.h>
#include <arch/hlt.h>
#include <console/console.h>
#include <program_loading.h>
#include <security/vboot/vboot_common.h>

void __weak verstage_mainboard_init(void)
{
	/* Default empty implementation. */
}

void main(void)
{
	console_init();
	exception_init();
	verstage_mainboard_init();

	if (CONFIG(VBOOT_RETURN_FROM_VERSTAGE)) {
		verstage_main();
	} else {
		run_romstage();
		hlt();
	}
}