File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,11 @@ static inline void *arch_kmap_local_high_get(struct page *page)
473
473
}
474
474
#endif
475
475
476
+ #ifndef arch_kmap_local_set_pte
477
+ #define arch_kmap_local_set_pte (mm , vaddr , ptep , ptev ) \
478
+ set_pte_at(mm, vaddr, ptep, ptev)
479
+ #endif
480
+
476
481
/* Unmap a local mapping which was obtained by kmap_high_get() */
477
482
static inline bool kmap_high_unmap_local (unsigned long vaddr )
478
483
{
@@ -515,7 +520,7 @@ void *__kmap_local_pfn_prot(unsigned long pfn, pgprot_t prot)
515
520
vaddr = __fix_to_virt (FIX_KMAP_BEGIN + idx );
516
521
BUG_ON (!pte_none (* (kmap_pte - idx )));
517
522
pteval = pfn_pte (pfn , prot );
518
- set_pte_at (& init_mm , vaddr , kmap_pte - idx , pteval );
523
+ arch_kmap_local_set_pte (& init_mm , vaddr , kmap_pte - idx , pteval );
519
524
arch_kmap_local_post_map (vaddr , pteval );
520
525
current -> kmap_ctrl .pteval [kmap_local_idx ()] = pteval ;
521
526
preempt_enable ();
You can’t perform that action at this time.
0 commit comments