coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
s3_mtrr.c File Reference
#include <stdint.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h>
#include <cpu/amd/mtrr.h>
#include <cpu/x86/cache.h>
#include <string.h>
#include <northbridge/amd/agesa/agesa_helper.h>
Include dependency graph for s3_mtrr.c:

Go to the source code of this file.

Functions

static void write_mtrr (u8 **p_nvram_pos, unsigned int idx)
 
void backup_mtrr (void *mtrr_store, u32 *mtrr_store_size)
 
void restore_mtrr (void)
 

Function Documentation

◆ backup_mtrr()

void backup_mtrr ( void mtrr_store,
u32 mtrr_store_size 
)

◆ restore_mtrr()

◆ write_mtrr()

static void write_mtrr ( u8 **  p_nvram_pos,
unsigned int  idx 
)
static

Definition at line 11 of file s3_mtrr.c.

References memcpy(), and rdmsr().

Referenced by backup_mtrr().

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