coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
debug.c File Reference
#include <console/console.h>
#include <cpu/cpu.h>
#include <cpu/x86/mtrr.h>
#include <stdint.h>
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

static const char * display_mtrr_type (uint32_t type)
 
static void display_mtrr_fixed_types (uint64_t msr, uint32_t starting_address, uint32_t memory_size)
 
static void display_4k_mtrr (uint32_t msr_reg, uint32_t starting_address, const char *name)
 
static void display_16k_mtrr (uint32_t msr_reg, uint32_t starting_address, const char *name)
 
static void display_64k_mtrr (void)
 
static void display_mtrrcap (void)
 
static void display_mtrr_def_type (void)
 
static void display_variable_mtrr (int index, uint64_t address_mask)
 
static void _display_mtrrs (void)
 
asmlinkage void display_mtrrs (void)
 

Function Documentation

◆ _display_mtrrs()

◆ display_16k_mtrr()

static void display_16k_mtrr ( uint32_t  msr_reg,
uint32_t  starting_address,
const char *  name 
)
static

Definition at line 64 of file debug.c.

References BIOS_DEBUG, display_mtrr_fixed_types(), name, printk, rdmsr(), and s.

Referenced by _display_mtrrs().

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

◆ display_4k_mtrr()

static void display_4k_mtrr ( uint32_t  msr_reg,
uint32_t  starting_address,
const char *  name 
)
static

Definition at line 51 of file debug.c.

References BIOS_DEBUG, display_mtrr_fixed_types(), name, printk, rdmsr(), and s.

Referenced by _display_mtrrs().

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

◆ display_64k_mtrr()

static void display_64k_mtrr ( void  )
static

Definition at line 77 of file debug.c.

References BIOS_DEBUG, display_mtrr_fixed_types(), MTRR_FIX_64K_00000, printk, rdmsr(), and s.

Referenced by _display_mtrrs().

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

◆ display_mtrr_def_type()

static void display_mtrr_def_type ( void  )
static

Definition at line 104 of file debug.c.

References BIOS_DEBUG, display_mtrr_type(), MTRR_DEF_TYPE_EN, MTRR_DEF_TYPE_FIX_EN, MTRR_DEF_TYPE_MASK, MTRR_DEF_TYPE_MSR, printk, rdmsr(), and s.

Referenced by _display_mtrrs().

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

◆ display_mtrr_fixed_types()

static void display_mtrr_fixed_types ( uint64_t  msr,
uint32_t  starting_address,
uint32_t  memory_size 
)
static

Definition at line 21 of file debug.c.

References BIOS_DEBUG, display_mtrr_type(), MTRR_DEF_TYPE_MASK, printk, and type.

Referenced by display_16k_mtrr(), display_4k_mtrr(), and display_64k_mtrr().

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

◆ display_mtrr_type()

static const char* display_mtrr_type ( uint32_t  type)
static

Definition at line 8 of file debug.c.

References type.

Referenced by display_mtrr_def_type(), display_mtrr_fixed_types(), and display_variable_mtrr().

Here is the caller graph for this function:

◆ display_mtrrcap()

static void display_mtrrcap ( void  )
static

Definition at line 89 of file debug.c.

References BIOS_DEBUG, msr_struct::hi, msr_struct::lo, MTRR_CAP_FIX, MTRR_CAP_MSR, MTRR_CAP_PRMRR, MTRR_CAP_SMRR, MTRR_CAP_VCNT, MTRR_CAP_WC, printk, and rdmsr().

Referenced by _display_mtrrs().

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

◆ display_mtrrs()

asmlinkage void display_mtrrs ( void  )

Definition at line 186 of file debug.c.

References _display_mtrrs(), and CONFIG.

Referenced by bootblock_soc_init(), fsp_debug_after_memory_init(), fsp_debug_after_notify(), fsp_debug_after_silicon_init(), fsp_debug_before_memory_init(), fsp_debug_before_silicon_init(), fsp_notify_dummy(), and main().

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

◆ display_variable_mtrr()

static void display_variable_mtrr ( int  index,
uint64_t  address_mask 
)
static

Definition at line 120 of file debug.c.

References BIOS_DEBUG, display_mtrr_type(), length, mask, MTRR_DEF_TYPE_MASK, MTRR_PHYS_BASE, MTRR_PHYS_MASK_VALID, printk, rdmsr(), and s.

Referenced by _display_mtrrs().

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