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>
8 
10 {
11  /* Default empty implementation. */
12 }
13 
14 void main(void)
15 {
16  console_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 }
void exception_init(void)
Definition: exception.c:120
static __always_inline void hlt(void)
Definition: hlt.h:6
#define printk(level,...)
Definition: stdlib.h:16
@ CONFIG
Definition: dsi_common.h:201
void console_init(void)
Definition: init.c:49
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
void verstage_mainboard_init(void)
Definition: verstage.c:41
void run_romstage(void)
Definition: prog_loaders.c:18
const struct smm_save_state_ops *legacy_ops __weak
Definition: save_state.c:8
void main(void)
Definition: verstage.c:14
void verstage_main(void)
Verify and select the firmware in the RW image.
Definition: vboot_logic.c:245