coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
verstage.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <arch/exception.h>
4
#include <arch/hlt.h>
5
#include <
console/console.h
>
6
#include <
program_loading.h
>
7
#include <
security/vboot/vboot_common.h
>
8
9
void
__weak
verstage_mainboard_init
(
void
)
10
{
11
/* Default empty implementation. */
12
}
13
14
void
main
(
void
)
15
{
16
console_init
();
17
exception_init
();
18
verstage_mainboard_init
();
19
20
if
(
CONFIG
(VBOOT_RETURN_FROM_VERSTAGE)) {
21
verstage_main
();
22
printk
(
BIOS_DEBUG
,
"VBOOT: Returning from verstage.\n"
);
23
}
else
{
24
run_romstage
();
25
hlt
();
26
}
27
}
exception_init
void exception_init(void)
Definition:
exception.c:120
hlt
static __always_inline void hlt(void)
Definition:
hlt.h:6
printk
#define printk(level,...)
Definition:
stdlib.h:16
console.h
CONFIG
@ CONFIG
Definition:
dsi_common.h:201
console_init
void console_init(void)
Definition:
init.c:49
BIOS_DEBUG
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition:
loglevel.h:128
verstage_mainboard_init
void verstage_mainboard_init(void)
Definition:
verstage.c:41
program_loading.h
run_romstage
void run_romstage(void)
Definition:
prog_loaders.c:18
__weak
const struct smm_save_state_ops *legacy_ops __weak
Definition:
save_state.c:8
main
void main(void)
Definition:
verstage.c:14
vboot_common.h
verstage_main
void verstage_main(void)
Verify and select the firmware in the RW image.
Definition:
vboot_logic.c:245
src
security
vboot
verstage.c
Generated by
1.9.1