coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smm.h File Reference
#include <cpu/x86/msr.h>
#include <types.h>
Include dependency graph for smm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  smm_relocation_params
 

Functions

void get_smm_info (uintptr_t *perm_smbase, size_t *perm_smsize, size_t *smm_save_state_size)
 
void smm_relocation_handler (int cpu, uintptr_t curr_smbase, uintptr_t staggered_smbase)
 
voidget_smi_source_handler (int source)
 
void handle_smi_gsmi (void)
 
void handle_smi_store (void)
 
void clear_tvalid (void)
 
void mainboard_handle_smi (int event)
 

Function Documentation

◆ clear_tvalid()

void clear_tvalid ( void  )

Definition at line 12 of file smm_helper.c.

References BIOS_ERR, HWCR_MSR, msr_struct::lo, mask, printk, rdmsr(), SMM_LOCK, SMM_MASK_MSR, SMM_TSEG_VALID, and wrmsr().

Referenced by smm_region().

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

◆ get_smi_source_handler()

void* get_smi_source_handler ( int  source)

Definition at line 145 of file smihandler.c.

References ARRAY_SIZE, smi_sources_t::handler, NULL, smi_sources, and type.

Referenced by process_smi_sources().

Here is the caller graph for this function:

◆ get_smm_info()

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

Definition at line 29 of file smm_relocate.c.

◆ handle_smi_gsmi()

void handle_smi_gsmi ( void  )

Definition at line 50 of file smi_apmc_helper.c.

References APM_CNT_ELOG_GSMI, find_save_state(), and gsmi_exec().

Referenced by fch_apmc_smi_handler().

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

◆ handle_smi_store()

void handle_smi_store ( void  )

Definition at line 69 of file smi_apmc_helper.c.

References APM_CNT_SMMSTORE, find_save_state(), and smmstore_exec().

Referenced by fch_apmc_smi_handler().

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

◆ mainboard_handle_smi()

void mainboard_handle_smi ( int  event)

Definition at line 10 of file smi_handler.c.

References BIOS_WARNING, and printk.

Referenced by process_smi_sources().

Here is the caller graph for this function:

◆ smm_relocation_handler()