|
@@ -121,24 +121,8 @@ void kunmap_atomic(void *kvaddr, enum km_type type)
|
|
pagefault_enable();
|
|
pagefault_enable();
|
|
}
|
|
}
|
|
|
|
|
|
-void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type, pgprot_t prot)
|
|
|
|
-{
|
|
|
|
- enum fixed_addresses idx;
|
|
|
|
- unsigned long vaddr;
|
|
|
|
-
|
|
|
|
- pagefault_disable();
|
|
|
|
-
|
|
|
|
- debug_kmap_atomic_prot(type);
|
|
|
|
-
|
|
|
|
- idx = type + KM_TYPE_NR * smp_processor_id();
|
|
|
|
- vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
|
|
|
|
- set_pte(kmap_pte - idx, pfn_pte(pfn, prot));
|
|
|
|
- arch_flush_lazy_mmu_mode();
|
|
|
|
-
|
|
|
|
- return (void*) vaddr;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/* This is the same as kmap_atomic() but can map memory that doesn't
|
|
|
|
|
|
+/*
|
|
|
|
+ * This is the same as kmap_atomic() but can map memory that doesn't
|
|
* have a struct page associated with it.
|
|
* have a struct page associated with it.
|
|
*/
|
|
*/
|
|
void *kmap_atomic_pfn(unsigned long pfn, enum km_type type)
|
|
void *kmap_atomic_pfn(unsigned long pfn, enum km_type type)
|