diff options
Diffstat (limited to 'arch/x86/mm/pageattr.c')
-rw-r--r-- | arch/x86/mm/pageattr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 0389cb8f6b1a..65c6e46bf059 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -141,7 +141,7 @@ static void cpa_flush_all(unsigned long cache) | |||
141 | { | 141 | { |
142 | BUG_ON(irqs_disabled()); | 142 | BUG_ON(irqs_disabled()); |
143 | 143 | ||
144 | on_each_cpu(__cpa_flush_all, (void *) cache, 1, 1); | 144 | on_each_cpu(__cpa_flush_all, (void *) cache, 1); |
145 | } | 145 | } |
146 | 146 | ||
147 | static void __cpa_flush_range(void *arg) | 147 | static void __cpa_flush_range(void *arg) |
@@ -162,7 +162,7 @@ static void cpa_flush_range(unsigned long start, int numpages, int cache) | |||
162 | BUG_ON(irqs_disabled()); | 162 | BUG_ON(irqs_disabled()); |
163 | WARN_ON(PAGE_ALIGN(start) != start); | 163 | WARN_ON(PAGE_ALIGN(start) != start); |
164 | 164 | ||
165 | on_each_cpu(__cpa_flush_range, NULL, 1, 1); | 165 | on_each_cpu(__cpa_flush_range, NULL, 1); |
166 | 166 | ||
167 | if (!cache) | 167 | if (!cache) |
168 | return; | 168 | return; |
@@ -262,6 +262,7 @@ pte_t *lookup_address(unsigned long address, unsigned int *level) | |||
262 | 262 | ||
263 | return pte_offset_kernel(pmd, address); | 263 | return pte_offset_kernel(pmd, address); |
264 | } | 264 | } |
265 | EXPORT_SYMBOL_GPL(lookup_address); | ||
265 | 266 | ||
266 | /* | 267 | /* |
267 | * Set the new pmd in all the pgds we know about: | 268 | * Set the new pmd in all the pgds we know about: |
@@ -658,11 +659,11 @@ static int cpa_process_alias(struct cpa_data *cpa) | |||
658 | struct cpa_data alias_cpa; | 659 | struct cpa_data alias_cpa; |
659 | int ret = 0; | 660 | int ret = 0; |
660 | 661 | ||
661 | if (cpa->pfn > max_pfn_mapped) | 662 | if (cpa->pfn >= max_pfn_mapped) |
662 | return 0; | 663 | return 0; |
663 | 664 | ||
664 | #ifdef CONFIG_X86_64 | 665 | #ifdef CONFIG_X86_64 |
665 | if (cpa->pfn > max_low_pfn_mapped && cpa->pfn < (1UL<<(32-PAGE_SHIFT))) | 666 | if (cpa->pfn >= max_low_pfn_mapped && cpa->pfn < (1UL<<(32-PAGE_SHIFT))) |
666 | return 0; | 667 | return 0; |
667 | #endif | 668 | #endif |
668 | /* | 669 | /* |