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

Go to the source code of this file.

Macros

#define MAX_CPU_CACHE   (256 * KiB)
 

Functions

static uint32_t max_cache_used (void)
 
void platform_prog_run (struct prog *prog)
 

Macro Definition Documentation

◆ MAX_CPU_CACHE

#define MAX_CPU_CACHE   (256 * KiB)

Definition at line 11 of file xip_cache.c.

Function Documentation

◆ max_cache_used()

static uint32_t max_cache_used ( void  )
static

Definition at line 15 of file xip_cache.c.

References get_var_mtrr_count(), msr_struct::lo, MTRR_PHYS_MASK, MTRR_PHYS_MASK_VALID, rdmsr(), and total_mtrrs.

Referenced by platform_prog_run().

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

◆ platform_prog_run()

void platform_prog_run ( struct prog prog)