hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/sparc/include/asm/pgtsrmmu.h
....@@ -17,39 +17,9 @@
1717 /* Number of contexts is implementation-dependent; 64k is the most we support */
1818 #define SRMMU_MAX_CONTEXTS 65536
1919
20
-/* PMD_SHIFT determines the size of the area a second-level page table entry can map */
21
-#define SRMMU_REAL_PMD_SHIFT 18
22
-#define SRMMU_REAL_PMD_SIZE (1UL << SRMMU_REAL_PMD_SHIFT)
23
-#define SRMMU_REAL_PMD_MASK (~(SRMMU_REAL_PMD_SIZE-1))
24
-#define SRMMU_REAL_PMD_ALIGN(__addr) (((__addr)+SRMMU_REAL_PMD_SIZE-1)&SRMMU_REAL_PMD_MASK)
25
-
26
-/* PGDIR_SHIFT determines what a third-level page table entry can map */
27
-#define SRMMU_PGDIR_SHIFT 24
28
-#define SRMMU_PGDIR_SIZE (1UL << SRMMU_PGDIR_SHIFT)
29
-#define SRMMU_PGDIR_MASK (~(SRMMU_PGDIR_SIZE-1))
30
-#define SRMMU_PGDIR_ALIGN(addr) (((addr)+SRMMU_PGDIR_SIZE-1)&SRMMU_PGDIR_MASK)
31
-
32
-#define SRMMU_REAL_PTRS_PER_PTE 64
33
-#define SRMMU_REAL_PTRS_PER_PMD 64
34
-#define SRMMU_PTRS_PER_PGD 256
35
-
36
-#define SRMMU_REAL_PTE_TABLE_SIZE (SRMMU_REAL_PTRS_PER_PTE*4)
37
-#define SRMMU_PMD_TABLE_SIZE (SRMMU_REAL_PTRS_PER_PMD*4)
38
-#define SRMMU_PGD_TABLE_SIZE (SRMMU_PTRS_PER_PGD*4)
39
-
40
-/*
41
- * To support pagetables in highmem, Linux introduces APIs which
42
- * return struct page* and generally manipulate page tables when
43
- * they are not mapped into kernel space. Our hardware page tables
44
- * are smaller than pages. We lump hardware tabes into big, page sized
45
- * software tables.
46
- *
47
- * PMD_SHIFT determines the size of the area a second-level page table entry
48
- * can map, and our pmd_t is 16 times larger than normal. The values which
49
- * were once defined here are now generic for 4c and srmmu, so they're
50
- * found in pgtable.h.
51
- */
52
-#define SRMMU_PTRS_PER_PMD 4
20
+#define SRMMU_PTE_TABLE_SIZE (PTRS_PER_PTE*4)
21
+#define SRMMU_PMD_TABLE_SIZE (PTRS_PER_PMD*4)
22
+#define SRMMU_PGD_TABLE_SIZE (PTRS_PER_PGD*4)
5323
5424 /* Definition of the values in the ET field of PTD's and PTE's */
5525 #define SRMMU_ET_MASK 0x3