forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/xtensa/include/asm/fixmap.h
....@@ -13,10 +13,10 @@
1313 #ifndef _ASM_FIXMAP_H
1414 #define _ASM_FIXMAP_H
1515
16
-#include <asm/pgtable.h>
1716 #ifdef CONFIG_HIGHMEM
1817 #include <linux/threads.h>
19
-#include <asm/kmap_types.h>
18
+#include <linux/pgtable.h>
19
+#include <asm/kmap_size.h>
2020 #endif
2121
2222 /*
....@@ -39,7 +39,7 @@
3939 /* reserved pte's for temporary kernel mappings */
4040 FIX_KMAP_BEGIN,
4141 FIX_KMAP_END = FIX_KMAP_BEGIN +
42
- (KM_TYPE_NR * NR_CPUS * DCACHE_N_COLORS) - 1,
42
+ (KM_MAX_IDX * NR_CPUS * DCACHE_N_COLORS) - 1,
4343 #endif
4444 __end_of_fixed_addresses
4545 };
....@@ -75,11 +75,5 @@
7575 }
7676
7777 #endif
78
-
79
-#define kmap_get_fixmap_pte(vaddr) \
80
- pte_offset_kernel( \
81
- pmd_offset(pud_offset(pgd_offset_k(vaddr), (vaddr)), (vaddr)), \
82
- (vaddr) \
83
- )
8478
8579 #endif