Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110423
b: refs/heads/master
c: dd55235
h: refs/heads/master
i:
  110421: fc4d287
  110419: 6f71608
  110415: 891a29c
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Oct 5, 2008
1 parent 519a40e commit 1e89fb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 99e1aa17ce434010dd820b583628370cc15f10f3
refs/heads/master: dd5523552c2897e3fde16fc2fc8f6332addf66ab
5 changes: 4 additions & 1 deletion trunk/arch/x86/kernel/cpu/mtrr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,8 @@ x86_get_mtrr_mem_range(struct res_range *range, int nr_range,
/* take out UC ranges */
for (i = 0; i < num_var_ranges; i++) {
type = range_state[i].type;
if (type != MTRR_TYPE_UNCACHABLE)
if (type != MTRR_TYPE_UNCACHABLE &&
type != MTRR_TYPE_WRPROT)
continue;
size = range_state[i].size_pfn;
if (!size)
Expand Down Expand Up @@ -1248,6 +1249,8 @@ static int __init mtrr_cleanup(unsigned address_bits)
continue;
if (!size)
type = MTRR_NUM_TYPES;
if (type == MTRR_TYPE_WRPROT)
type = MTRR_TYPE_UNCACHABLE;
num[type]++;
}

Expand Down

0 comments on commit 1e89fb6

Please sign in to comment.