coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbmem_stage_cache.c File Reference
#include <cbmem.h>
#include <stage_cache.h>
#include <string.h>
#include <console/console.h>
Include dependency graph for cbmem_stage_cache.c:

Go to the source code of this file.

Functions

void stage_cache_add (int stage_id, const struct prog *stage)
 
void stage_cache_add_raw (int stage_id, const void *base, const size_t size)
 
void stage_cache_get_raw (int stage_id, void **base, size_t *size)
 
void stage_cache_load_stage (int stage_id, struct prog *stage)
 

Function Documentation

◆ stage_cache_add()

void stage_cache_add ( int  stage_id,
const struct prog stage 
)

◆ stage_cache_add_raw()

void stage_cache_add_raw ( int  stage_id,
const void base,
const size_t  size 
)

Definition at line 34 of file cbmem_stage_cache.c.

References base, BIOS_DEBUG, c, cbmem_add(), CBMEM_ID_STAGEx_RAW, memcpy(), NULL, and printk.

Here is the call graph for this function:

◆ stage_cache_get_raw()

void stage_cache_get_raw ( int  stage_id,
void **  base,
size_t size 
)

Definition at line 48 of file cbmem_stage_cache.c.

References base, BIOS_ERR, cbmem_entry_find(), cbmem_entry_size(), cbmem_entry_start(), CBMEM_ID_STAGEx_RAW, NULL, and printk.

Here is the call graph for this function:

◆ stage_cache_load_stage()

void stage_cache_load_stage ( int  stage_id,
struct prog stage 
)