Go to the documentation of this file.
4 #include <asm/kmap_types.h>
6 #define PKMAP_BASE (PAGE_OFFSET - PMD_SIZE)
7 #define LAST_PKMAP PTRS_PER_PTE
8 #define LAST_PKMAP_MASK (LAST_PKMAP - 1)
9 #define PKMAP_NR(virt) (((virt) - PKMAP_BASE) >> PAGE_SHIFT)
10 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
12 #define kmap_prot PAGE_KERNEL
14 #define flush_cache_kmaps() \
16 if (cache_is_vivt()) \
36 #define ARCH_NEEDS_KMAP_HIGH_GET
37 #if defined(CONFIG_SMP) && defined(CONFIG_CPU_TLB_V6)
38 #undef ARCH_NEEDS_KMAP_HIGH_GET
39 #if defined(CONFIG_HIGHMEM) && defined(CONFIG_CPU_CACHE_VIVT)
40 #error "The sum of features in your kernel config cannot be supported together"
44 #ifdef ARCH_NEEDS_KMAP_HIGH_GET