![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include "psp_verstage.h"
#include <amdblocks/acpimmio.h>
#include <bl_uapp/bl_syscall_public.h>
#include <boot_device.h>
#include <cbfs.h>
#include <commonlib/region.h>
#include <console/console.h>
#include <fmap.h>
#include <pc80/mc146818rtc.h>
#include <soc/iomap.h>
#include <soc/psp_transfer.h>
#include <security/tpm/tspi.h>
#include <security/tpm/tss.h>
#include <security/vboot/vbnv.h>
#include <security/vboot/misc.h>
#include <security/vboot/symbols.h>
#include <security/vboot/vboot_common.h>
#include <arch/stages.h>
#include <stdarg.h>
#include <stdio.h>
#include <timestamp.h>
Go to the source code of this file.
Functions | |
void __weak | verstage_mainboard_init (void) |
static void | reboot_into_recovery (struct vb2_context *ctx, uint32_t subcode) |
static uint32_t | check_cmos_recovery (void) |
static uint32_t | update_boot_region (struct vb2_context *ctx) |
static uint32_t | save_buffers (void) |
static void | psp_verstage_s0i3_resume (void) |
void | Main (void) |
void | stage_entry (uintptr_t stage_arg) |
generic stage entry point. More... | |
Variables | |
char | _bss_start |
char | _bss_end |
Definition at line 52 of file psp_verstage.c.
References BIOS_DEBUG, cmos_read(), CMOS_RECOVERY_MAGIC_VAL, cmos_write(), POSTCODE_CMOS_RECOVERY, printk, and vbnv_cmos_failed().
Referenced by Main().
Definition at line 199 of file psp_verstage.c.
References _bss_end, _bss_start, BIOS_DEBUG, BIOS_ERR, boot_device_ro(), cbfs_get_boot_device(), check_cmos_recovery(), CONFIG, console_init(), fch_io_enable_legacy_io(), memset(), NULL, platform_report_mode(), post_code, POSTCODE_CONSOLE_INIT, POSTCODE_EARLY_INIT, POSTCODE_EARLY_INIT_ERROR, POSTCODE_ENTERED_PSP_VERSTAGE, POSTCODE_LATE_INIT, POSTCODE_LEAVING_VERSTAGE, POSTCODE_SAVE_BUFFERS, POSTCODE_UNMAP_FCH_DEVICES, POSTCODE_UNMAP_SPI_ROM, POSTCODE_UPDATE_BOOT_REGION, POSTCODE_VERSTAGE_MAIN, printk, psp_verstage_s0i3_resume(), rdev_mmap_full(), reboot_into_recovery(), save_buffers(), svc_debug_print(), svc_exit(), svc_get_boot_mode(), svc_unmap_spi_rom(), svc_write_postcode(), timestamp_get, timestamp_init(), unmap_fch_devices(), update_boot_region(), vboot_developer_mode_enabled(), vboot_get_context(), vboot_reboot(), vboot_run_logic(), verstage_mainboard_early_init(), verstage_mainboard_espi_init(), verstage_mainboard_init(), verstage_mainboard_tpm_init(), verstage_soc_aoac_init(), verstage_soc_early_init(), verstage_soc_espi_init(), verstage_soc_i2c_init(), and verstage_soc_spi_init().
Referenced by stage_entry().
Definition at line 175 of file psp_verstage.c.
References BIOS_DEBUG, BIOS_ERR, CONFIG, post_code, POSTCODE_INIT_TPM_FAILED, POSTCODE_VERSTAGE_S0I3_RESUME, printk, reboot_into_recovery(), tlcl_disable_platform_hierarchy(), tpm_setup(), TPM_SUCCESS, and vboot_get_context().
Referenced by Main().
Definition at line 30 of file psp_verstage.c.
References BIOS_ERR, printk, PSP_VBOOT_ERROR_SUBCODE, svc_debug_print(), svc_write_postcode(), vboot_reboot(), and vboot_save_data().
Referenced by Main(), and psp_verstage_s0i3_resume().
Definition at line 136 of file psp_verstage.c.
References BIOS_ERR, transfer_info_struct::buffer_size, transfer_info_struct::console_offset, transfer_info_struct::fmap_offset, transfer_info_struct::magic_val, memcpy(), POSTCODE_WORKBUF_SAVE_ERROR, printk, save_uapp_data(), transfer_info_struct::struct_bytes, transfer_info_struct::timestamp_offset, TRANSFER_MAGIC_VAL, and transfer_info_struct::workbuf_offset.
Referenced by Main().
generic stage entry point.
override this if board specific code is needed.
Definition at line 336 of file psp_verstage.c.
References Main().
|
static |
Definition at line 71 of file psp_verstage.c.
References BHD_COOKIE, BIOS_ERR, boot_device_ro(), cbfs_map(), embedded_firmware::combo_psp_directory, embedded_firmware::efs_gen, EFS_SECOND_GEN, EMBEDDED_FW_SIGNATURE, FLASH_BASE_ADDR, second_gen_efs::gen, get_bios_dir_addr(), NULL, POSTCODE_AMD_FW_MISSING, POSTCODE_BHD_COOKIE_MISMATCH_ERROR, POSTCODE_PSP_COOKIE_MISMATCH_ERROR, POSTCODE_ROMSIG_MISMATCH_ERROR, POSTCODE_UPDATE_PSP_BIOS_DIR_ERROR, printk, PSP_COOKIE, rdev_mmap_full(), embedded_firmware::signature, SPI_ADDR_MASK, update_psp_bios_dir(), and vboot_is_firmware_slot_a().
Referenced by Main().
Definition at line 28 of file psp_verstage.c.
Referenced by Main().
char _bss_end |
Definition at line 26 of file psp_verstage.c.
Referenced by Main().
|
extern |
Referenced by Main().