| .. | .. |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | #include <linux/interrupt.h> |
|---|
| 25 | 25 | #include <linux/threads.h> |
|---|
| 26 | +#include <asm/kmap_types.h> |
|---|
| 26 | 27 | #include <asm/tlbflush.h> |
|---|
| 27 | 28 | #include <asm/paravirt.h> |
|---|
| 28 | 29 | #include <asm/fixmap.h> |
|---|
| .. | .. |
|---|
| 57 | 58 | #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT) |
|---|
| 58 | 59 | #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) |
|---|
| 59 | 60 | |
|---|
| 61 | +void *kmap_atomic_pfn(unsigned long pfn); |
|---|
| 62 | +void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot); |
|---|
| 63 | + |
|---|
| 60 | 64 | #define flush_cache_kmaps() do { } while (0) |
|---|
| 61 | | - |
|---|
| 62 | | -#define arch_kmap_local_post_map(vaddr, pteval) \ |
|---|
| 63 | | - arch_flush_lazy_mmu_mode() |
|---|
| 64 | | - |
|---|
| 65 | | -#define arch_kmap_local_post_unmap(vaddr) \ |
|---|
| 66 | | - do { \ |
|---|
| 67 | | - flush_tlb_one_kernel((vaddr)); \ |
|---|
| 68 | | - arch_flush_lazy_mmu_mode(); \ |
|---|
| 69 | | - } while (0) |
|---|
| 70 | 65 | |
|---|
| 71 | 66 | extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn, |
|---|
| 72 | 67 | unsigned long end_pfn); |
|---|