~ubuntu-branches/ubuntu/saucy/seabios/saucy-proposed

« back to all changes in this revision

Viewing changes to src/mtrr.c

  • Committer: Package Import Robot
  • Author(s): Michael Tokarev
  • Date: 2013-07-08 21:34:44 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130708213444-6ed9q23j39x143lu
Tags: 1.7.3-1
Multi-Arch: allowed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
#include "util.h" // dprintf
8
8
#include "config.h" // CONFIG_*
9
 
#include "xen.h" // usingXen
10
9
#include "pci.h" // pcimem_start
 
10
#include "paravirt.h" // RamSize
11
11
 
12
12
#define MSR_MTRRcap                    0x000000fe
13
13
#define MSR_MTRRfix64K_00000           0x00000250
34
34
 
35
35
void mtrr_setup(void)
36
36
{
37
 
    if (!CONFIG_MTRR_INIT || CONFIG_COREBOOT || usingXen())
 
37
    if (!CONFIG_MTRR_INIT)
38
38
        return;
39
39
 
40
40
    u32 eax, ebx, ecx, edx, cpuid_features;