coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
psp_verstage.c File Reference
#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>
Include dependency graph for psp_verstage.c:

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
 

Function Documentation

◆ check_cmos_recovery()

static uint32_t check_cmos_recovery ( void  )
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Main()

◆ psp_verstage_s0i3_resume()

static void psp_verstage_s0i3_resume ( void  )
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reboot_into_recovery()

static void reboot_into_recovery ( struct vb2_context *  ctx,
uint32_t  subcode 
)
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save_buffers()

◆ stage_entry()

void stage_entry ( uintptr_t  stage_arg)

generic stage entry point.

override this if board specific code is needed.

Definition at line 336 of file psp_verstage.c.

References Main().

Here is the call graph for this function:

◆ update_boot_region()

◆ verstage_mainboard_init()

void __weak verstage_mainboard_init ( void  )

Definition at line 28 of file psp_verstage.c.

Referenced by Main().

Here is the caller graph for this function:

Variable Documentation

◆ _bss_end

char _bss_end

Definition at line 26 of file psp_verstage.c.

Referenced by Main().

◆ _bss_start

char _bss_start
extern

Referenced by Main().