![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#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>
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) |
Definition at line 20 of file s3_mtrr.c.
References msr_struct::lo, MTRR_FIX_16K_80000, MTRR_FIX_16K_A0000, MTRR_FIX_4K_C0000, MTRR_FIX_4K_F8000, MTRR_FIX_64K_00000, MTRR_PHYS_BASE, rdmsr(), SYSCFG_MSR, SYSCFG_MSR_MtrrFixDramModEn, TOP_MEM, TOP_MEM2, write_mtrr(), and wrmsr().
Definition at line 58 of file s3_mtrr.c.
References disable_cache(), msr_struct::hi, msr_struct::lo, MTRR_FIX_16K_80000, MTRR_FIX_16K_A0000, MTRR_FIX_4K_C0000, MTRR_FIX_4K_F8000, MTRR_FIX_64K_00000, MTRR_PHYS_BASE, MTRR_PHYS_MASK, OemS3Saved_MTRR_Storage(), rdmsr(), SYSCFG_MSR, SYSCFG_MSR_MtrrFixDramModEn, and wrmsr().