diff options
| -rw-r--r-- | arch/sparc64/kernel/dtlb_backend.S | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/sparc64/kernel/dtlb_backend.S b/arch/sparc64/kernel/dtlb_backend.S index 538522848ad4..acc889a7f9c1 100644 --- a/arch/sparc64/kernel/dtlb_backend.S +++ b/arch/sparc64/kernel/dtlb_backend.S | |||
| @@ -9,17 +9,7 @@ | |||
| 9 | #include <asm/pgtable.h> | 9 | #include <asm/pgtable.h> |
| 10 | #include <asm/mmu.h> | 10 | #include <asm/mmu.h> |
| 11 | 11 | ||
| 12 | #if PAGE_SHIFT == 13 | 12 | #define VALID_SZ_BITS (_PAGE_VALID | _PAGE_SZBITS) |
| 13 | #define SZ_BITS _PAGE_SZ8K | ||
| 14 | #elif PAGE_SHIFT == 16 | ||
| 15 | #define SZ_BITS _PAGE_SZ64K | ||
| 16 | #elif PAGE_SHIFT == 19 | ||
| 17 | #define SZ_BITS _PAGE_SZ512K | ||
| 18 | #elif PAGE_SHIFT == 22 | ||
| 19 | #define SZ_BITS _PAGE_SZ4MB | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #define VALID_SZ_BITS (_PAGE_VALID | SZ_BITS) | ||
| 23 | 13 | ||
| 24 | #define VPTE_BITS (_PAGE_CP | _PAGE_CV | _PAGE_P ) | 14 | #define VPTE_BITS (_PAGE_CP | _PAGE_CV | _PAGE_P ) |
| 25 | #define VPTE_SHIFT (PAGE_SHIFT - 3) | 15 | #define VPTE_SHIFT (PAGE_SHIFT - 3) |
| @@ -163,7 +153,6 @@ sparc64_vpte_continue: | |||
| 163 | stxa %g4, [%g1 + %g1] ASI_DMMU ! Restore previous TAG_ACCESS | 153 | stxa %g4, [%g1 + %g1] ASI_DMMU ! Restore previous TAG_ACCESS |
| 164 | retry ! Load PTE once again | 154 | retry ! Load PTE once again |
| 165 | 155 | ||
| 166 | #undef SZ_BITS | ||
| 167 | #undef VALID_SZ_BITS | 156 | #undef VALID_SZ_BITS |
| 168 | #undef VPTE_SHIFT | 157 | #undef VPTE_SHIFT |
| 169 | #undef VPTE_BITS | 158 | #undef VPTE_BITS |
