aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pgtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/pgtable.c')
-rw-r--r--arch/x86/mm/pgtable.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c
index 7498124e30fc..e9fb66361fc8 100644
--- a/arch/x86/mm/pgtable.c
+++ b/arch/x86/mm/pgtable.c
@@ -277,7 +277,7 @@ int ptep_clear_flush_young(struct vm_area_struct *vma,
277 277
278int fixmaps_set; 278int fixmaps_set;
279 279
280void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags) 280void __native_set_fixmap(enum fixed_addresses idx, pte_t pte)
281{ 281{
282 unsigned long address = __fix_to_virt(idx); 282 unsigned long address = __fix_to_virt(idx);
283 283
@@ -285,6 +285,11 @@ void __set_fixmap (enum fixed_addresses idx, unsigned long phys, pgprot_t flags)
285 BUG(); 285 BUG();
286 return; 286 return;
287 } 287 }
288 set_pte_vaddr(address, pfn_pte(phys >> PAGE_SHIFT, flags)); 288 set_pte_vaddr(address, pte);
289 fixmaps_set++; 289 fixmaps_set++;
290} 290}
291
292void native_set_fixmap(enum fixed_addresses idx, unsigned long phys, pgprot_t flags)
293{
294 __native_set_fixmap(idx, pfn_pte(phys >> PAGE_SHIFT, flags));
295}