hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/x86/include/asm/highmem.h
....@@ -23,6 +23,7 @@
2323
2424 #include <linux/interrupt.h>
2525 #include <linux/threads.h>
26
+#include <asm/kmap_types.h>
2627 #include <asm/tlbflush.h>
2728 #include <asm/paravirt.h>
2829 #include <asm/fixmap.h>
....@@ -57,16 +58,10 @@
5758 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
5859 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
5960
61
+void *kmap_atomic_pfn(unsigned long pfn);
62
+void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot);
63
+
6064 #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)
7065
7166 extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn,
7267 unsigned long end_pfn);