diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-11-21 18:16:48 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 16:46:44 -0500 |
commit | 34adb28d500e644cc260da4ceb66ba6dc0beaf93 (patch) | |
tree | d47596d498c031e9140f7fca3a5bc8b4a393a08d /arch/mips | |
parent | f98614072c5d43421a2cfa6f9b911a071e6e6d5f (diff) |
MIPS: Replace MIPS-specific 64BIT_PHYS_ADDR with generic PHYS_ADDR_T_64BIT
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Kconfig | 15 | ||||
-rw-r--r-- | arch/mips/alchemy/common/setup.c | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-au1x00/ioremap.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/page.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/pgtable-32.h | 14 | ||||
-rw-r--r-- | arch/mips/include/asm/pgtable-bits.h | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/pgtable.h | 8 | ||||
-rw-r--r-- | arch/mips/include/asm/types.h | 2 | ||||
-rw-r--r-- | arch/mips/mm/gup.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/init.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/tlb-r4k.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/tlbex.c | 18 | ||||
-rw-r--r-- | arch/mips/sibyte/common/cfe.c | 4 |
13 files changed, 37 insertions, 40 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index d9393963e6d6..0a8e88d06b99 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -63,7 +63,7 @@ choice | |||
63 | 63 | ||
64 | config MIPS_ALCHEMY | 64 | config MIPS_ALCHEMY |
65 | bool "Alchemy processor based machines" | 65 | bool "Alchemy processor based machines" |
66 | select 64BIT_PHYS_ADDR | 66 | select ARCH_PHYS_ADDR_T_64BIT |
67 | select CEVT_R4K | 67 | select CEVT_R4K |
68 | select CSRC_R4K | 68 | select CSRC_R4K |
69 | select IRQ_CPU | 69 | select IRQ_CPU |
@@ -771,7 +771,7 @@ config MIKROTIK_RB532 | |||
771 | config CAVIUM_OCTEON_SOC | 771 | config CAVIUM_OCTEON_SOC |
772 | bool "Cavium Networks Octeon SoC based boards" | 772 | bool "Cavium Networks Octeon SoC based boards" |
773 | select CEVT_R4K | 773 | select CEVT_R4K |
774 | select 64BIT_PHYS_ADDR | 774 | select ARCH_PHYS_ADDR_T_64BIT |
775 | select DMA_COHERENT | 775 | select DMA_COHERENT |
776 | select SYS_SUPPORTS_64BIT_KERNEL | 776 | select SYS_SUPPORTS_64BIT_KERNEL |
777 | select SYS_SUPPORTS_BIG_ENDIAN | 777 | select SYS_SUPPORTS_BIG_ENDIAN |
@@ -813,7 +813,7 @@ config NLM_XLR_BOARD | |||
813 | select SWAP_IO_SPACE | 813 | select SWAP_IO_SPACE |
814 | select SYS_SUPPORTS_32BIT_KERNEL | 814 | select SYS_SUPPORTS_32BIT_KERNEL |
815 | select SYS_SUPPORTS_64BIT_KERNEL | 815 | select SYS_SUPPORTS_64BIT_KERNEL |
816 | select 64BIT_PHYS_ADDR | 816 | select ARCH_PHYS_ADDR_T_64BIT |
817 | select SYS_SUPPORTS_BIG_ENDIAN | 817 | select SYS_SUPPORTS_BIG_ENDIAN |
818 | select SYS_SUPPORTS_HIGHMEM | 818 | select SYS_SUPPORTS_HIGHMEM |
819 | select DMA_COHERENT | 819 | select DMA_COHERENT |
@@ -839,7 +839,7 @@ config NLM_XLP_BOARD | |||
839 | select HW_HAS_PCI | 839 | select HW_HAS_PCI |
840 | select SYS_SUPPORTS_32BIT_KERNEL | 840 | select SYS_SUPPORTS_32BIT_KERNEL |
841 | select SYS_SUPPORTS_64BIT_KERNEL | 841 | select SYS_SUPPORTS_64BIT_KERNEL |
842 | select 64BIT_PHYS_ADDR | 842 | select ARCH_PHYS_ADDR_T_64BIT |
843 | select SYS_SUPPORTS_BIG_ENDIAN | 843 | select SYS_SUPPORTS_BIG_ENDIAN |
844 | select SYS_SUPPORTS_LITTLE_ENDIAN | 844 | select SYS_SUPPORTS_LITTLE_ENDIAN |
845 | select SYS_SUPPORTS_HIGHMEM | 845 | select SYS_SUPPORTS_HIGHMEM |
@@ -979,7 +979,7 @@ config FW_CFE | |||
979 | bool | 979 | bool |
980 | 980 | ||
981 | config ARCH_DMA_ADDR_T_64BIT | 981 | config ARCH_DMA_ADDR_T_64BIT |
982 | def_bool (HIGHMEM && 64BIT_PHYS_ADDR) || 64BIT | 982 | def_bool (HIGHMEM && ARCH_PHYS_ADDR_T_64BIT) || 64BIT |
983 | 983 | ||
984 | config DMA_MAYBE_COHERENT | 984 | config DMA_MAYBE_COHERENT |
985 | select DMA_NONCOHERENT | 985 | select DMA_NONCOHERENT |
@@ -2124,11 +2124,8 @@ config SB1_PASS_2_1_WORKAROUNDS | |||
2124 | default y | 2124 | default y |
2125 | 2125 | ||
2126 | 2126 | ||
2127 | config 64BIT_PHYS_ADDR | ||
2128 | bool | ||
2129 | |||
2130 | config ARCH_PHYS_ADDR_T_64BIT | 2127 | config ARCH_PHYS_ADDR_T_64BIT |
2131 | def_bool 64BIT_PHYS_ADDR | 2128 | bool |
2132 | 2129 | ||
2133 | config CPU_HAS_SMARTMIPS | 2130 | config CPU_HAS_SMARTMIPS |
2134 | depends on SYS_SUPPORTS_SMARTMIPS | 2131 | depends on SYS_SUPPORTS_SMARTMIPS |
diff --git a/arch/mips/alchemy/common/setup.c b/arch/mips/alchemy/common/setup.c index ea8f41869e56..a97707e1b4ab 100644 --- a/arch/mips/alchemy/common/setup.c +++ b/arch/mips/alchemy/common/setup.c | |||
@@ -70,7 +70,7 @@ void __init plat_mem_setup(void) | |||
70 | iomem_resource.end = IOMEM_RESOURCE_END; | 70 | iomem_resource.end = IOMEM_RESOURCE_END; |
71 | } | 71 | } |
72 | 72 | ||
73 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_PCI) | 73 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_PCI) |
74 | /* This routine should be valid for all Au1x based boards */ | 74 | /* This routine should be valid for all Au1x based boards */ |
75 | phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) | 75 | phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) |
76 | { | 76 | { |
diff --git a/arch/mips/include/asm/mach-au1x00/ioremap.h b/arch/mips/include/asm/mach-au1x00/ioremap.h index 75a94ad3ac91..c63c81bc4bcc 100644 --- a/arch/mips/include/asm/mach-au1x00/ioremap.h +++ b/arch/mips/include/asm/mach-au1x00/ioremap.h | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | 13 | ||
14 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_PCI) | 14 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_PCI) |
15 | extern phys_t __fixup_bigphys_addr(phys_t, phys_t); | 15 | extern phys_t __fixup_bigphys_addr(phys_t, phys_t); |
16 | #else | 16 | #else |
17 | static inline phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) | 17 | static inline phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) |
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 3be81803595d..154b70a10483 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h | |||
@@ -116,7 +116,7 @@ extern void copy_user_highpage(struct page *to, struct page *from, | |||
116 | /* | 116 | /* |
117 | * These are used to make use of C type-checking.. | 117 | * These are used to make use of C type-checking.. |
118 | */ | 118 | */ |
119 | #ifdef CONFIG_64BIT_PHYS_ADDR | 119 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
120 | #ifdef CONFIG_CPU_MIPS32 | 120 | #ifdef CONFIG_CPU_MIPS32 |
121 | typedef struct { unsigned long pte_low, pte_high; } pte_t; | 121 | typedef struct { unsigned long pte_low, pte_high; } pte_t; |
122 | #define pte_val(x) ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) | 122 | #define pte_val(x) ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) |
diff --git a/arch/mips/include/asm/pgtable-32.h b/arch/mips/include/asm/pgtable-32.h index cd7d6064bcbe..3021a9459f7f 100644 --- a/arch/mips/include/asm/pgtable-32.h +++ b/arch/mips/include/asm/pgtable-32.h | |||
@@ -69,7 +69,7 @@ extern int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1, | |||
69 | # define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE) | 69 | # define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE) |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #ifdef CONFIG_64BIT_PHYS_ADDR | 72 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
73 | #define pte_ERROR(e) \ | 73 | #define pte_ERROR(e) \ |
74 | printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e)) | 74 | printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e)) |
75 | #else | 75 | #else |
@@ -103,7 +103,7 @@ static inline void pmd_clear(pmd_t *pmdp) | |||
103 | pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); | 103 | pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); |
104 | } | 104 | } |
105 | 105 | ||
106 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 106 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
107 | #define pte_page(x) pfn_to_page(pte_pfn(x)) | 107 | #define pte_page(x) pfn_to_page(pte_pfn(x)) |
108 | #define pte_pfn(x) ((unsigned long)((x).pte_high >> 6)) | 108 | #define pte_pfn(x) ((unsigned long)((x).pte_high >> 6)) |
109 | static inline pte_t | 109 | static inline pte_t |
@@ -126,7 +126,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
126 | #define pte_pfn(x) ((unsigned long)((x).pte >> _PFN_SHIFT)) | 126 | #define pte_pfn(x) ((unsigned long)((x).pte >> _PFN_SHIFT)) |
127 | #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot)) | 127 | #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot)) |
128 | #endif | 128 | #endif |
129 | #endif /* defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) */ | 129 | #endif /* defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) */ |
130 | 130 | ||
131 | #define __pgd_offset(address) pgd_index(address) | 131 | #define __pgd_offset(address) pgd_index(address) |
132 | #define __pud_offset(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) | 132 | #define __pud_offset(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) |
@@ -177,7 +177,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
177 | #else | 177 | #else |
178 | 178 | ||
179 | /* Swap entries must have VALID and GLOBAL bits cleared. */ | 179 | /* Swap entries must have VALID and GLOBAL bits cleared. */ |
180 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 180 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
181 | #define __swp_type(x) (((x).val >> 2) & 0x1f) | 181 | #define __swp_type(x) (((x).val >> 2) & 0x1f) |
182 | #define __swp_offset(x) ((x).val >> 7) | 182 | #define __swp_offset(x) ((x).val >> 7) |
183 | #define __swp_entry(type,offset) \ | 183 | #define __swp_entry(type,offset) \ |
@@ -187,9 +187,9 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
187 | #define __swp_offset(x) ((x).val >> 13) | 187 | #define __swp_offset(x) ((x).val >> 13) |
188 | #define __swp_entry(type,offset) \ | 188 | #define __swp_entry(type,offset) \ |
189 | ((swp_entry_t) { ((type) << 8) | ((offset) << 13) }) | 189 | ((swp_entry_t) { ((type) << 8) | ((offset) << 13) }) |
190 | #endif /* defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) */ | 190 | #endif /* defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) */ |
191 | 191 | ||
192 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 192 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
193 | /* | 193 | /* |
194 | * Bits 0 and 1 of pte_high are taken, use the rest for the page offset... | 194 | * Bits 0 and 1 of pte_high are taken, use the rest for the page offset... |
195 | */ | 195 | */ |
@@ -216,7 +216,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
216 | 216 | ||
217 | #endif | 217 | #endif |
218 | 218 | ||
219 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 219 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
220 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_high }) | 220 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_high }) |
221 | #define __swp_entry_to_pte(x) ((pte_t) { 0, (x).val }) | 221 | #define __swp_entry_to_pte(x) ((pte_t) { 0, (x).val }) |
222 | #else | 222 | #else |
diff --git a/arch/mips/include/asm/pgtable-bits.h b/arch/mips/include/asm/pgtable-bits.h index e747bfa0be7e..29ba35954e2e 100644 --- a/arch/mips/include/asm/pgtable-bits.h +++ b/arch/mips/include/asm/pgtable-bits.h | |||
@@ -32,7 +32,7 @@ | |||
32 | * unpredictable things. The code (when it is written) to deal with | 32 | * unpredictable things. The code (when it is written) to deal with |
33 | * this problem will be in the update_mmu_cache() code for the r4k. | 33 | * this problem will be in the update_mmu_cache() code for the r4k. |
34 | */ | 34 | */ |
35 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 35 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * The following bits are directly used by the TLB hardware | 38 | * The following bits are directly used by the TLB hardware |
@@ -172,7 +172,7 @@ | |||
172 | 172 | ||
173 | #define _PFN_SHIFT (PAGE_SHIFT - 12 + _CACHE_SHIFT + 3) | 173 | #define _PFN_SHIFT (PAGE_SHIFT - 12 + _CACHE_SHIFT + 3) |
174 | 174 | ||
175 | #endif /* defined(CONFIG_64BIT_PHYS_ADDR && defined(CONFIG_CPU_MIPS32) */ | 175 | #endif /* defined(CONFIG_PHYS_ADDR_T_64BIT && defined(CONFIG_CPU_MIPS32) */ |
176 | 176 | ||
177 | #ifndef _PFN_SHIFT | 177 | #ifndef _PFN_SHIFT |
178 | #define _PFN_SHIFT PAGE_SHIFT | 178 | #define _PFN_SHIFT PAGE_SHIFT |
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index d6d1928539b1..1ccc573e4983 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h | |||
@@ -125,7 +125,7 @@ do { \ | |||
125 | extern void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, | 125 | extern void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, |
126 | pte_t pteval); | 126 | pte_t pteval); |
127 | 127 | ||
128 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 128 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
129 | 129 | ||
130 | #define pte_none(pte) (!(((pte).pte_low | (pte).pte_high) & ~_PAGE_GLOBAL)) | 130 | #define pte_none(pte) (!(((pte).pte_low | (pte).pte_high) & ~_PAGE_GLOBAL)) |
131 | #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) | 131 | #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) |
@@ -227,7 +227,7 @@ extern pgd_t swapper_pg_dir[]; | |||
227 | * The following only work if pte_present() is true. | 227 | * The following only work if pte_present() is true. |
228 | * Undefined behaviour if not.. | 228 | * Undefined behaviour if not.. |
229 | */ | 229 | */ |
230 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 230 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
231 | static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } | 231 | static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } |
232 | static inline int pte_dirty(pte_t pte) { return pte.pte_low & _PAGE_MODIFIED; } | 232 | static inline int pte_dirty(pte_t pte) { return pte.pte_low & _PAGE_MODIFIED; } |
233 | static inline int pte_young(pte_t pte) { return pte.pte_low & _PAGE_ACCESSED; } | 233 | static inline int pte_young(pte_t pte) { return pte.pte_low & _PAGE_ACCESSED; } |
@@ -382,7 +382,7 @@ static inline pgprot_t pgprot_writecombine(pgprot_t _prot) | |||
382 | */ | 382 | */ |
383 | #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) | 383 | #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) |
384 | 384 | ||
385 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 385 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
386 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | 386 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) |
387 | { | 387 | { |
388 | pte.pte_low &= _PAGE_CHG_MASK; | 388 | pte.pte_low &= _PAGE_CHG_MASK; |
@@ -419,7 +419,7 @@ static inline void update_mmu_cache_pmd(struct vm_area_struct *vma, | |||
419 | 419 | ||
420 | #define kern_addr_valid(addr) (1) | 420 | #define kern_addr_valid(addr) (1) |
421 | 421 | ||
422 | #ifdef CONFIG_64BIT_PHYS_ADDR | 422 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
423 | extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); | 423 | extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); |
424 | 424 | ||
425 | static inline int io_remap_pfn_range(struct vm_area_struct *vma, | 425 | static inline int io_remap_pfn_range(struct vm_area_struct *vma, |
diff --git a/arch/mips/include/asm/types.h b/arch/mips/include/asm/types.h index 247207b9292d..f1fb285d211c 100644 --- a/arch/mips/include/asm/types.h +++ b/arch/mips/include/asm/types.h | |||
@@ -22,7 +22,7 @@ | |||
22 | /* | 22 | /* |
23 | * Don't use phys_t. You've been warned. | 23 | * Don't use phys_t. You've been warned. |
24 | */ | 24 | */ |
25 | #ifdef CONFIG_64BIT_PHYS_ADDR | 25 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
26 | typedef unsigned long long phys_t; | 26 | typedef unsigned long long phys_t; |
27 | #else | 27 | #else |
28 | typedef unsigned long phys_t; | 28 | typedef unsigned long phys_t; |
diff --git a/arch/mips/mm/gup.c b/arch/mips/mm/gup.c index 06ce17c2a905..7cba480568c8 100644 --- a/arch/mips/mm/gup.c +++ b/arch/mips/mm/gup.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | static inline pte_t gup_get_pte(pte_t *ptep) | 18 | static inline pte_t gup_get_pte(pte_t *ptep) |
19 | { | 19 | { |
20 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 20 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
21 | pte_t pte; | 21 | pte_t pte; |
22 | 22 | ||
23 | retry: | 23 | retry: |
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index f42e35e42790..448cde372af0 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -95,7 +95,7 @@ static void *__kmap_pgprot(struct page *page, unsigned long addr, pgprot_t prot) | |||
95 | idx += in_interrupt() ? FIX_N_COLOURS : 0; | 95 | idx += in_interrupt() ? FIX_N_COLOURS : 0; |
96 | vaddr = __fix_to_virt(FIX_CMAP_END - idx); | 96 | vaddr = __fix_to_virt(FIX_CMAP_END - idx); |
97 | pte = mk_pte(page, prot); | 97 | pte = mk_pte(page, prot); |
98 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 98 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
99 | entrylo = pte.pte_high; | 99 | entrylo = pte.pte_high; |
100 | #else | 100 | #else |
101 | entrylo = pte_to_entrylo(pte_val(pte)); | 101 | entrylo = pte_to_entrylo(pte_val(pte)); |
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c index c3917e251f59..e90b2e899291 100644 --- a/arch/mips/mm/tlb-r4k.c +++ b/arch/mips/mm/tlb-r4k.c | |||
@@ -332,7 +332,7 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte) | |||
332 | { | 332 | { |
333 | ptep = pte_offset_map(pmdp, address); | 333 | ptep = pte_offset_map(pmdp, address); |
334 | 334 | ||
335 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) | 335 | #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) |
336 | write_c0_entrylo0(ptep->pte_high); | 336 | write_c0_entrylo0(ptep->pte_high); |
337 | ptep++; | 337 | ptep++; |
338 | write_c0_entrylo1(ptep->pte_high); | 338 | write_c0_entrylo1(ptep->pte_high); |
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index b5f228e7eae6..7994368f96c4 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -637,7 +637,7 @@ static __maybe_unused void build_convert_pte_to_entrylo(u32 **p, | |||
637 | if (cpu_has_rixi) { | 637 | if (cpu_has_rixi) { |
638 | UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); | 638 | UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); |
639 | } else { | 639 | } else { |
640 | #ifdef CONFIG_64BIT_PHYS_ADDR | 640 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
641 | uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); | 641 | uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); |
642 | #else | 642 | #else |
643 | UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); | 643 | UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); |
@@ -1009,7 +1009,7 @@ static void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep) | |||
1009 | * 64bit address support (36bit on a 32bit CPU) in a 32bit | 1009 | * 64bit address support (36bit on a 32bit CPU) in a 32bit |
1010 | * Kernel is a special case. Only a few CPUs use it. | 1010 | * Kernel is a special case. Only a few CPUs use it. |
1011 | */ | 1011 | */ |
1012 | #ifdef CONFIG_64BIT_PHYS_ADDR | 1012 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
1013 | if (cpu_has_64bits) { | 1013 | if (cpu_has_64bits) { |
1014 | uasm_i_ld(p, tmp, 0, ptep); /* get even pte */ | 1014 | uasm_i_ld(p, tmp, 0, ptep); /* get even pte */ |
1015 | uasm_i_ld(p, ptep, sizeof(pte_t), ptep); /* get odd pte */ | 1015 | uasm_i_ld(p, ptep, sizeof(pte_t), ptep); /* get odd pte */ |
@@ -1510,14 +1510,14 @@ static void | |||
1510 | iPTE_LW(u32 **p, unsigned int pte, unsigned int ptr) | 1510 | iPTE_LW(u32 **p, unsigned int pte, unsigned int ptr) |
1511 | { | 1511 | { |
1512 | #ifdef CONFIG_SMP | 1512 | #ifdef CONFIG_SMP |
1513 | # ifdef CONFIG_64BIT_PHYS_ADDR | 1513 | # ifdef CONFIG_PHYS_ADDR_T_64BIT |
1514 | if (cpu_has_64bits) | 1514 | if (cpu_has_64bits) |
1515 | uasm_i_lld(p, pte, 0, ptr); | 1515 | uasm_i_lld(p, pte, 0, ptr); |
1516 | else | 1516 | else |
1517 | # endif | 1517 | # endif |
1518 | UASM_i_LL(p, pte, 0, ptr); | 1518 | UASM_i_LL(p, pte, 0, ptr); |
1519 | #else | 1519 | #else |
1520 | # ifdef CONFIG_64BIT_PHYS_ADDR | 1520 | # ifdef CONFIG_PHYS_ADDR_T_64BIT |
1521 | if (cpu_has_64bits) | 1521 | if (cpu_has_64bits) |
1522 | uasm_i_ld(p, pte, 0, ptr); | 1522 | uasm_i_ld(p, pte, 0, ptr); |
1523 | else | 1523 | else |
@@ -1530,13 +1530,13 @@ static void | |||
1530 | iPTE_SW(u32 **p, struct uasm_reloc **r, unsigned int pte, unsigned int ptr, | 1530 | iPTE_SW(u32 **p, struct uasm_reloc **r, unsigned int pte, unsigned int ptr, |
1531 | unsigned int mode) | 1531 | unsigned int mode) |
1532 | { | 1532 | { |
1533 | #ifdef CONFIG_64BIT_PHYS_ADDR | 1533 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
1534 | unsigned int hwmode = mode & (_PAGE_VALID | _PAGE_DIRTY); | 1534 | unsigned int hwmode = mode & (_PAGE_VALID | _PAGE_DIRTY); |
1535 | #endif | 1535 | #endif |
1536 | 1536 | ||
1537 | uasm_i_ori(p, pte, pte, mode); | 1537 | uasm_i_ori(p, pte, pte, mode); |
1538 | #ifdef CONFIG_SMP | 1538 | #ifdef CONFIG_SMP |
1539 | # ifdef CONFIG_64BIT_PHYS_ADDR | 1539 | # ifdef CONFIG_PHYS_ADDR_T_64BIT |
1540 | if (cpu_has_64bits) | 1540 | if (cpu_has_64bits) |
1541 | uasm_i_scd(p, pte, 0, ptr); | 1541 | uasm_i_scd(p, pte, 0, ptr); |
1542 | else | 1542 | else |
@@ -1548,7 +1548,7 @@ iPTE_SW(u32 **p, struct uasm_reloc **r, unsigned int pte, unsigned int ptr, | |||
1548 | else | 1548 | else |
1549 | uasm_il_beqz(p, r, pte, label_smp_pgtable_change); | 1549 | uasm_il_beqz(p, r, pte, label_smp_pgtable_change); |
1550 | 1550 | ||
1551 | # ifdef CONFIG_64BIT_PHYS_ADDR | 1551 | # ifdef CONFIG_PHYS_ADDR_T_64BIT |
1552 | if (!cpu_has_64bits) { | 1552 | if (!cpu_has_64bits) { |
1553 | /* no uasm_i_nop needed */ | 1553 | /* no uasm_i_nop needed */ |
1554 | uasm_i_ll(p, pte, sizeof(pte_t) / 2, ptr); | 1554 | uasm_i_ll(p, pte, sizeof(pte_t) / 2, ptr); |
@@ -1563,14 +1563,14 @@ iPTE_SW(u32 **p, struct uasm_reloc **r, unsigned int pte, unsigned int ptr, | |||
1563 | uasm_i_nop(p); | 1563 | uasm_i_nop(p); |
1564 | # endif | 1564 | # endif |
1565 | #else | 1565 | #else |
1566 | # ifdef CONFIG_64BIT_PHYS_ADDR | 1566 | # ifdef CONFIG_PHYS_ADDR_T_64BIT |
1567 | if (cpu_has_64bits) | 1567 | if (cpu_has_64bits) |
1568 | uasm_i_sd(p, pte, 0, ptr); | 1568 | uasm_i_sd(p, pte, 0, ptr); |
1569 | else | 1569 | else |
1570 | # endif | 1570 | # endif |
1571 | UASM_i_SW(p, pte, 0, ptr); | 1571 | UASM_i_SW(p, pte, 0, ptr); |
1572 | 1572 | ||
1573 | # ifdef CONFIG_64BIT_PHYS_ADDR | 1573 | # ifdef CONFIG_PHYS_ADDR_T_64BIT |
1574 | if (!cpu_has_64bits) { | 1574 | if (!cpu_has_64bits) { |
1575 | uasm_i_lw(p, pte, sizeof(pte_t) / 2, ptr); | 1575 | uasm_i_lw(p, pte, sizeof(pte_t) / 2, ptr); |
1576 | uasm_i_ori(p, pte, pte, hwmode); | 1576 | uasm_i_ori(p, pte, pte, hwmode); |
diff --git a/arch/mips/sibyte/common/cfe.c b/arch/mips/sibyte/common/cfe.c index 588e1806a1a3..d3eea3c1b18c 100644 --- a/arch/mips/sibyte/common/cfe.c +++ b/arch/mips/sibyte/common/cfe.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #define MAX_RAM_SIZE (~0ULL) | 38 | #define MAX_RAM_SIZE (~0ULL) |
39 | #else | 39 | #else |
40 | #ifdef CONFIG_HIGHMEM | 40 | #ifdef CONFIG_HIGHMEM |
41 | #ifdef CONFIG_64BIT_PHYS_ADDR | 41 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
42 | #define MAX_RAM_SIZE (~0ULL) | 42 | #define MAX_RAM_SIZE (~0ULL) |
43 | #else | 43 | #else |
44 | #define MAX_RAM_SIZE (0xffffffffULL) | 44 | #define MAX_RAM_SIZE (0xffffffffULL) |
@@ -96,7 +96,7 @@ static void __noreturn cfe_linux_halt(void) | |||
96 | 96 | ||
97 | static __init void prom_meminit(void) | 97 | static __init void prom_meminit(void) |
98 | { | 98 | { |
99 | u64 addr, size, type; /* regardless of 64BIT_PHYS_ADDR */ | 99 | u64 addr, size, type; /* regardless of PHYS_ADDR_T_64BIT */ |
100 | int mem_flags = 0; | 100 | int mem_flags = 0; |
101 | unsigned int idx; | 101 | unsigned int idx; |
102 | int rd_flag; | 102 | int rd_flag; |