|
@@ -39,6 +39,7 @@ void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type, pgprot_t prot)
|
|
|
|
|
|
pagefault_disable();
|
|
pagefault_disable();
|
|
|
|
|
|
|
|
+ debug_kmap_atomic(type);
|
|
idx = type + KM_TYPE_NR * smp_processor_id();
|
|
idx = type + KM_TYPE_NR * smp_processor_id();
|
|
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
|
|
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
|
|
set_pte(kmap_pte - idx, pfn_pte(pfn, prot));
|
|
set_pte(kmap_pte - idx, pfn_pte(pfn, prot));
|
|
@@ -72,7 +73,6 @@ iounmap_atomic(void *kvaddr, enum km_type type)
|
|
unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
|
|
unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
|
|
enum fixed_addresses idx = type + KM_TYPE_NR*smp_processor_id();
|
|
enum fixed_addresses idx = type + KM_TYPE_NR*smp_processor_id();
|
|
|
|
|
|
- debug_kmap_atomic(type);
|
|
|
|
/*
|
|
/*
|
|
* Force other mappings to Oops if they'll try to access this pte
|
|
* Force other mappings to Oops if they'll try to access this pte
|
|
* without first remap it. Keeping stale mappings around is a bad idea
|
|
* without first remap it. Keeping stale mappings around is a bad idea
|