coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
prog_loaders.c File Reference
#include <cbfs.h>
#include <cbmem.h>
#include <console/console.h>
#include <fallback.h>
#include <halt.h>
#include <lib.h>
#include <program_loading.h>
#include <reset.h>
#include <rmodule.h>
#include <stage_cache.h>
#include <symbols.h>
#include <thread.h>
#include <timestamp.h>
#include <security/vboot/vboot_common.h>
Include dependency graph for prog_loaders.c:

Go to the source code of this file.

Functions

void run_romstage (void)
 
int __weak prog_locate_hook (struct prog *prog)
 
static void run_ramstage_from_resume (struct prog *ramstage)
 
static int load_relocatable_ramstage (struct prog *ramstage)
 
void preload_ramstage (void)
 
void run_ramstage (void)
 

Function Documentation

◆ load_relocatable_ramstage()

static int load_relocatable_ramstage ( struct prog ramstage)
static

Definition at line 67 of file prog_loaders.c.

References rmod_stage_load::cbmem_id, CBMEM_ID_RAMSTAGE, and rmodule_stage_load().

Referenced by run_ramstage().

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

◆ preload_ramstage()

void preload_ramstage ( void  )

Definition at line 76 of file prog_loaders.c.

References BIOS_DEBUG, cbfs_preload(), CONFIG, and printk.

Here is the call graph for this function:

◆ prog_locate_hook()

int __weak prog_locate_hook ( struct prog prog)

Definition at line 48 of file prog_loaders.c.

Referenced by rmodule_stage_load(), and selfload_check().

Here is the caller graph for this function:

◆ run_ramstage()

◆ run_ramstage_from_resume()

static void run_ramstage_from_resume ( struct prog ramstage)
static

Definition at line 50 of file prog_loaders.c.

References BIOS_DEBUG, BIOS_ERR, board_reset(), prog::cbfs_type, CBFS_TYPE_STAGE, cbmem_top(), NULL, printk, prog_entry(), prog_run(), prog_set_arg(), stage_cache_load_stage(), and STAGE_RAMSTAGE.

Referenced by run_ramstage().

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

◆ run_romstage()