| .. | .. |
|---|
| 16 | 16 | #include <linux/pgtable.h> |
|---|
| 17 | 17 | #include <asm/cacheflush.h> |
|---|
| 18 | 18 | #include <asm/fixmap.h> |
|---|
| 19 | +#include <asm/kmap_types.h> |
|---|
| 19 | 20 | |
|---|
| 20 | | -#define PKMAP_BASE ((FIXADDR_START - \ |
|---|
| 21 | +#define PKMAP_BASE ((FIXADDR_START - \ |
|---|
| 21 | 22 | (LAST_PKMAP + 1) * PAGE_SIZE) & PMD_MASK) |
|---|
| 22 | 23 | #define LAST_PKMAP (PTRS_PER_PTE * DCACHE_N_COLORS) |
|---|
| 23 | 24 | #define LAST_PKMAP_MASK (LAST_PKMAP - 1) |
|---|
| .. | .. |
|---|
| 66 | 67 | { |
|---|
| 67 | 68 | flush_cache_all(); |
|---|
| 68 | 69 | } |
|---|
| 69 | | - |
|---|
| 70 | | -enum fixed_addresses kmap_local_map_idx(int type, unsigned long pfn); |
|---|
| 71 | | -#define arch_kmap_local_map_idx kmap_local_map_idx |
|---|
| 72 | | - |
|---|
| 73 | | -enum fixed_addresses kmap_local_unmap_idx(int type, unsigned long addr); |
|---|
| 74 | | -#define arch_kmap_local_unmap_idx kmap_local_unmap_idx |
|---|
| 75 | | - |
|---|
| 76 | | -#define arch_kmap_local_post_unmap(vaddr) \ |
|---|
| 77 | | - local_flush_tlb_kernel_range(vaddr, vaddr + PAGE_SIZE) |
|---|
| 78 | 70 | |
|---|
| 79 | 71 | void kmap_init(void); |
|---|
| 80 | 72 | |
|---|