diff options
author | Andreas Herrmann <andreas.herrmann3@amd.com> | 2008-06-20 15:58:46 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-24 07:05:48 -0400 |
commit | bcc643dc287cb732e96a1685ac130c3ae8b1c960 (patch) | |
tree | 12098795536285f51aa2dfdab8cb7a3ffdcc7f87 /arch/x86/mm/pat.c | |
parent | dd0c7c4903c29da9aa3bf33deecf064d190a0d81 (diff) |
x86: introduce macro to check whether an address range is in the ISA range
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Suresh B Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pat.c')
-rw-r--r-- | arch/x86/mm/pat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 227df3ca9bfd..5bbc22efe4e5 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
@@ -215,7 +215,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
215 | } | 215 | } |
216 | 216 | ||
217 | /* Low ISA region is always mapped WB in page table. No need to track */ | 217 | /* Low ISA region is always mapped WB in page table. No need to track */ |
218 | if (start >= ISA_START_ADDRESS && (end - 1) <= ISA_END_ADDRESS) { | 218 | if (is_ISA_range(start, end - 1)) { |
219 | if (ret_type) | 219 | if (ret_type) |
220 | *ret_type = _PAGE_CACHE_WB; | 220 | *ret_type = _PAGE_CACHE_WB; |
221 | 221 | ||
@@ -415,9 +415,8 @@ int free_memtype(u64 start, u64 end) | |||
415 | } | 415 | } |
416 | 416 | ||
417 | /* Low ISA region is always mapped WB. No need to track */ | 417 | /* Low ISA region is always mapped WB. No need to track */ |
418 | if (start >= ISA_START_ADDRESS && end <= ISA_END_ADDRESS) { | 418 | if (is_ISA_range(start, end - 1)) |
419 | return 0; | 419 | return 0; |
420 | } | ||
421 | 420 | ||
422 | spin_lock(&memtype_lock); | 421 | spin_lock(&memtype_lock); |
423 | list_for_each_entry(ml, &memtype_list, nd) { | 422 | list_for_each_entry(ml, &memtype_list, nd) { |