![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
int | vboot_check_recovery_request (void) |
void | vboot_reboot (void) |
void | vboot_platform_prepare_reboot (void) |
int | vboot_save_hash (void *digest, size_t digest_size) |
int | vboot_retrieve_hash (void *digest, size_t digest_size) |
void | verstage_main (void) |
Verify and select the firmware in the RW image. More... | |
void | verstage_mainboard_early_init (void) |
void | verstage_mainboard_init (void) |
static int | vboot_developer_mode_enabled (void) |
static int | vboot_recovery_mode_enabled (void) |
static int | vboot_can_enable_udc (void) |
static void | vboot_run_logic (void) |
static const struct cbfs_boot_device * | vboot_get_cbfs_boot_device (void) |
void | vboot_save_data (struct vb2_context *ctx) |
void | vboot_sync_ec (void) |
|
inlinestatic |
Definition at line 59 of file vboot_common.h.
int vboot_check_recovery_request | ( | void | ) |
Definition at line 16 of file bootmode.c.
References vboot_get_context().
|
inlinestatic |
Definition at line 56 of file vboot_common.h.
|
inlinestatic |
Definition at line 61 of file vboot_common.h.
References NULL.
Definition at line 52 of file vboot.c.
References CONFIG, GALILEO_DETERMINE_IOEXP_SLA_RESUMEWELL_GPIO, gen1_tpm_reset_0x20, gen1_tpm_reset_0x21, gen2_tpm_reset, pmc_read_pm1_control(), pmc_write_pm1_control(), R_QNC_GPIO_RGLVL_RESUME_WELL, reg_legacy_gpio_read(), reg_script_run(), set_pm1cnt_s5(), SLP_TYP, SLP_TYP_S5, and SLP_TYP_SHIFT.
Referenced by vboot_reboot().
Definition at line 60 of file vboot_common.c.
References board_reset(), cbmem_dump_console_to_uart(), CONFIG, and vboot_platform_prepare_reboot().
Referenced by cse_trigger_vboot_recovery(), Main(), reboot_into_recovery(), vboot_sync_ec(), and verstage_main().
|
inlinestatic |
Definition at line 57 of file vboot_common.h.
Definition at line 43 of file vboot_storage.c.
References assert, EC_VSTORE_SLOT_SIZE, google_chromeec_vstore_read(), and VBOOT_HASH_VSLOT.
Referenced by handle_digest_result().
Definition at line 60 of file vboot_common.h.
void vboot_save_data | ( | struct vb2_context * | ctx | ) |
Definition at line 12 of file vboot_common.c.
References antirollback_write_space_firmware(), antirollback_write_space_kernel(), BIOS_INFO, CONFIG, printk, save_vbnv(), and tlcl_lib_init().
Referenced by cse_trigger_vboot_recovery(), reboot_into_recovery(), vboot_sync_ec(), and verstage_main().
Definition at line 11 of file vboot_storage.c.
References assert, BIOS_ERR, EC_VSTORE_SLOT_SIZE, google_chromeec_vstore_info(), google_chromeec_vstore_write(), printk, VBOOT_HASH_VSLOT, and VBOOT_HASH_VSLOT_MASK.
Referenced by handle_digest_result().
Definition at line 40 of file ec_sync.c.
References BIOS_EMERG, BIOS_ERR, BIOS_INFO, EC_REBOOT_COLD, EC_REBOOT_FLAG_SWITCH_RW_SLOT, google_chromeec_reboot(), halt(), printk, timestamp_add_now(), TS_EC_SYNC_END, TS_EC_SYNC_START, vboot_get_context(), vboot_reboot(), and vboot_save_data().
Referenced by romstage_main().
Verify and select the firmware in the RW image.
TODO: Avoid loading a stage twice (once in hash_body & again in load_stage). when per-stage verification is ready.
Definition at line 245 of file vboot_logic.c.
References antirollback_lock_space_firmware(), antirollback_lock_space_mrc_hash(), antirollback_read_space_firmware(), antirollback_read_space_kernel(), BIOS_INFO, BIOS_WARNING, boot_device_security_lockdown(), check_boot_mode(), CONFIG, die_with_post_code, extend_pcrs(), get_ec_is_trusted(), get_lid_switch(), get_recovery_mode_switch(), get_wipeout_mode_switch(), hash_body(), MRC_REC_HASH_NV_INDEX, platform_is_resuming(), POST_INVALID_ROM, printk, timestamp_add_now(), TPM_SUCCESS, TS_TPMINIT_END, TS_TPMINIT_START, TS_TPMLOCK_END, TS_TPMLOCK_START, TS_TPMPCR_END, TS_TPMPCR_START, TS_VBOOT_END, TS_VBOOT_START, TS_VERIFY_SLOT_END, TS_VERIFY_SLOT_START, vbnv_init(), vboot_get_context(), vboot_is_firmware_slot_a(), vboot_locate_firmware(), vboot_reboot(), vboot_save_data(), and vboot_setup_tpm().
Referenced by main(), and vboot_run_logic().
Definition at line 11 of file verstage.c.
References gpio_configure_pads_with_override(), setup_gpio(), variant_early_gpio_table(), and variant_early_override_gpio_table().
Referenced by Main().
Definition at line 41 of file verstage.c.
References BIOS_ERR, CONFIG, configure_l2_cache(), early_mainboard_init(), enable_cache(), GALILEO_DETERMINE_IOEXP_SLA_RESUMEWELL_GPIO, gen1_i2c_0x20_init, gen1_i2c_0x21_init, gen2_i2c_init, ipq_setup_tpm(), mainboard_early_init(), printk, R_QNC_GPIO_RGLVL_RESUME_WELL, reg_legacy_gpio_read(), reg_script_run(), and spi_setup_slave().
Referenced by main(), and Main().