coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cpu.c File Reference
Include dependency graph for cpu.c:

Go to the source code of this file.

Functions

static void get_smm_info (uintptr_t *perm_smbase, size_t *perm_smsize, size_t *smm_save_state_size)
 
static void relocation_handler (int cpu, uintptr_t curr_smbase, uintptr_t staggered_smbase)
 
static void post_mp_init (void)
 

Variables

const struct mp_ops mp_ops_with_smm
 

Function Documentation

◆ get_smm_info()

static void get_smm_info ( uintptr_t perm_smbase,
size_t perm_smsize,
size_t smm_save_state_size 
)
static

Definition at line 10 of file cpu.c.

References BIOS_DEBUG, printk, smm_subregion(), and SMM_SUBREGION_HANDLER.

Here is the call graph for this function:

◆ post_mp_init()

static void post_mp_init ( void  )
static

Definition at line 43 of file cpu.c.

◆ relocation_handler()

static void relocation_handler ( int  cpu,
uintptr_t  curr_smbase,
uintptr_t  staggered_smbase 
)
static

Definition at line 27 of file cpu.c.

References BIOS_DEBUG, printk, save_state, and SMM_DEFAULT_SIZE.

Variable Documentation

◆ mp_ops_with_smm

const struct mp_ops mp_ops_with_smm
Initial value:
= {
.get_cpu_count = fw_cfg_max_cpus,
.get_smm_info = get_smm_info,
.pre_mp_smm_init = smm_southbridge_clear_state,
.relocation_handler = relocation_handler,
.post_mp_init = post_mp_init,
}
int fw_cfg_max_cpus(void)
Definition: fw_cfg.c:131
static void relocation_handler(int cpu, uintptr_t curr_smbase, uintptr_t staggered_smbase)
Definition: cpu.c:27
static void get_smm_info(uintptr_t *perm_smbase, size_t *perm_smsize, size_t *smm_save_state_size)
Definition: cpu.c:10
static void post_mp_init(void)
Definition: cpu.c:43
void smm_southbridge_clear_state(void)
Definition: smm.c:22

Definition at line 43 of file cpu.c.

Referenced by mp_init_cpus().