Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145738
b: refs/heads/master
c: 7d9d55e
h: refs/heads/master
v: v3
  • Loading branch information
Jaswinder Singh Rajput authored and H. Peter Anvin committed May 15, 2009
1 parent c4b07f6 commit 6b689d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a036c7a358cc9d7ed28a188480b9a4d709e09b24
refs/heads/master: 7d9d55e449089df8463bca2045d702ae6cda64a2
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/cpu/mtrr/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct fixed_range_block {

static struct fixed_range_block fixed_range_blocks[] = {
{ MSR_MTRRfix64K_00000, 1 }, /* one 64k MTRR */
{ MTRRfix16K_80000_MSR, 2 }, /* two 16k MTRRs */
{ MSR_MTRRfix16K_80000, 2 }, /* two 16k MTRRs */
{ MTRRfix4K_C0000_MSR, 8 }, /* eight 4k MTRRs */
{}
};
Expand Down Expand Up @@ -197,7 +197,7 @@ get_fixed_ranges(mtrr_type * frs)
rdmsr(MSR_MTRRfix64K_00000, p[0], p[1]);

for (i = 0; i < 2; i++)
rdmsr(MTRRfix16K_80000_MSR + i, p[2 + i * 2], p[3 + i * 2]);
rdmsr(MSR_MTRRfix16K_80000 + i, p[2 + i * 2], p[3 + i * 2]);
for (i = 0; i < 8; i++)
rdmsr(MTRRfix4K_C0000_MSR + i, p[6 + i * 2], p[7 + i * 2]);
}
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/cpu/mtrr/mtrr.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#define MTRRdefType_MSR 0x2ff

#define MTRRfix16K_80000_MSR 0x258
#define MTRRfix16K_A0000_MSR 0x259
#define MTRRfix4K_C0000_MSR 0x268
#define MTRRfix4K_C8000_MSR 0x269
Expand Down

0 comments on commit 6b689d3

Please sign in to comment.