hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/xtensa/include/asm/highmem.h
....@@ -16,8 +16,9 @@
1616 #include <linux/pgtable.h>
1717 #include <asm/cacheflush.h>
1818 #include <asm/fixmap.h>
19
+#include <asm/kmap_types.h>
1920
20
-#define PKMAP_BASE ((FIXADDR_START - \
21
+#define PKMAP_BASE ((FIXADDR_START - \
2122 (LAST_PKMAP + 1) * PAGE_SIZE) & PMD_MASK)
2223 #define LAST_PKMAP (PTRS_PER_PTE * DCACHE_N_COLORS)
2324 #define LAST_PKMAP_MASK (LAST_PKMAP - 1)
....@@ -66,15 +67,6 @@
6667 {
6768 flush_cache_all();
6869 }
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)
7870
7971 void kmap_init(void);
8072