forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm/mm/mm.h
....@@ -2,11 +2,12 @@
22 #ifdef CONFIG_MMU
33 #include <linux/list.h>
44 #include <linux/vmalloc.h>
5
-
6
-#include <asm/pgtable.h>
5
+#include <linux/pgtable.h>
76
87 /* the upper-most page table pointer */
98 extern pmd_t *top_pmd;
9
+
10
+extern int icache_size;
1011
1112 /*
1213 * 0xffff8000 to 0xffffffff is reserved for any ARM architecture
....@@ -32,11 +33,6 @@
3233 {
3334 pte_t *ptep = pte_offset_kernel(top_pmd, va);
3435 return *ptep;
35
-}
36
-
37
-static inline pmd_t *pmd_off_k(unsigned long virt)
38
-{
39
- return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
4036 }
4137
4238 struct mem_type {
....@@ -67,9 +63,6 @@
6763 /* mapping type (attributes) for permanent static mappings */
6864 #define VM_ARM_MTYPE(mt) ((mt) << 20)
6965 #define VM_ARM_MTYPE_MASK (0x1f << 20)
70
-
71
-/* consistent regions used by dma_alloc_attrs() */
72
-#define VM_ARM_DMA_CONSISTENT 0x20000000
7366
7467
7568 struct static_vm {