Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Rename CONFIG_CPU_MIPS{32,64} to CONFIG_CPU_MIPS{32|64}_R1.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+51 -37
+20 -6
arch/mips/Kconfig
··· 1050 1050 prompt "CPU type" 1051 1051 default CPU_R4X00 1052 1052 1053 - config CPU_MIPS32 1054 - bool "MIPS32" 1053 + config CPU_MIPS32_R1 1054 + bool "MIPS32 Release 1" 1055 1055 select CPU_SUPPORTS_32BIT_KERNEL 1056 + select CPU_HAS_PREFETCH 1057 + help 1058 + Choose this option to build a kernel for release 1 or later of the 1059 + MIPS32 architecture. Most modern embedded systems with a 32-bit 1060 + MIPS processor are based on a MIPS32 processor. If you know the 1061 + specific type of processor in your system, choose those that one 1062 + otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 1056 1063 1057 - config CPU_MIPS64 1058 - bool "MIPS64" 1064 + config CPU_MIPS64_R1 1065 + bool "MIPS64 Release 1" 1059 1066 select CPU_SUPPORTS_32BIT_KERNEL 1060 1067 select CPU_SUPPORTS_64BIT_KERNEL 1068 + select CPU_HAS_PREFETCH 1069 + help 1070 + Choose this option to build a kernel for release 1 or later of the 1071 + MIPS64 architecture. Many modern embedded systems with a 64-bit 1072 + MIPS processor are based on a MIPS64 processor. If you know the 1073 + specific type of processor in your system, choose those that one 1074 + otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 1061 1075 1062 1076 config CPU_R3000 1063 1077 bool "R3000" ··· 1267 1253 1268 1254 config 64BIT_PHYS_ADDR 1269 1255 bool "Support for 64-bit physical address space" 1270 - depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && 32BIT 1256 + depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32_R1 || CPU_MIPS64_R1) && 32BIT 1271 1257 1272 1258 config CPU_ADVANCED 1273 1259 bool "Override CPU Options" ··· 1290 1276 1291 1277 config CPU_HAS_LLDSCD 1292 1278 bool "lld/scd Instructions available" if CPU_ADVANCED 1293 - default y if !CPU_ADVANCED && !CPU_R3000 && !CPU_VR41XX && !CPU_TX39XX && !CPU_MIPS32 1279 + default y if !CPU_ADVANCED && !CPU_R3000 && !CPU_VR41XX && !CPU_TX39XX && !CPU_MIPS32_R1 1294 1280 help 1295 1281 Say Y here if your CPU has the lld and scd instructions, the 64-bit 1296 1282 equivalents of ll and sc. Say Y here for better performance, N if
+2 -2
arch/mips/Makefile
··· 182 182 $(call set_gccflags,r4600,mips3,r4600,mips3,mips2) \ 183 183 -Wa,--trap 184 184 185 - cflags-$(CONFIG_CPU_MIPS32) += \ 185 + cflags-$(CONFIG_CPU_MIPS32_R1) += \ 186 186 $(call set_gccflags,mips32,mips32,r4600,mips3,mips2) \ 187 187 -Wa,--trap 188 188 189 - cflags-$(CONFIG_CPU_MIPS64) += \ 189 + cflags-$(CONFIG_CPU_MIPS64_R1) += \ 190 190 $(call set_gccflags,mips64,mips64,r4600,mips3,mips2) \ 191 191 -Wa,--trap 192 192
+2 -2
arch/mips/kernel/Makefile
··· 28 28 obj-$(CONFIG_CPU_NEVADA) += r4k_fpu.o r4k_switch.o 29 29 obj-$(CONFIG_CPU_R10000) += r4k_fpu.o r4k_switch.o 30 30 obj-$(CONFIG_CPU_SB1) += r4k_fpu.o r4k_switch.o 31 - obj-$(CONFIG_CPU_MIPS32) += r4k_fpu.o r4k_switch.o 32 - obj-$(CONFIG_CPU_MIPS64) += r4k_fpu.o r4k_switch.o 31 + obj-$(CONFIG_CPU_MIPS32_R1) += r4k_fpu.o r4k_switch.o 32 + obj-$(CONFIG_CPU_MIPS64_R1) += r4k_fpu.o r4k_switch.o 33 33 obj-$(CONFIG_CPU_R6000) += r6000_fpu.o r4k_switch.o 34 34 35 35 obj-$(CONFIG_SMP) += smp.o
+1 -1
arch/mips/kernel/r4k_switch.S
··· 165 165 1: 166 166 #endif 167 167 168 - #ifdef CONFIG_CPU_MIPS32 168 + #ifdef CONFIG_CPU_MIPS32_R1 169 169 mtc1 t1, $f0 170 170 mtc1 t1, $f1 171 171 mtc1 t1, $f2
+1 -1
arch/mips/kernel/traps.c
··· 864 864 reg_val & (1<<22) ? "E0 " : ""); 865 865 printk("IDX: 0x%08x\n", reg_val & ((1<<22)-1)); 866 866 867 - #if defined(CONFIG_CPU_MIPS32) || defined (CONFIG_CPU_MIPS64) 867 + #if defined(CONFIG_CPU_MIPS32_R1) || defined(CONFIG_CPU_MIPS64_R1) 868 868 if (reg_val & (1<<22)) 869 869 printk("DErrAddr0: 0x%0*lx\n", field, read_c0_derraddr0()); 870 870
+2 -2
arch/mips/lib-32/Makefile
··· 4 4 5 5 lib-y += csum_partial.o memset.o watch.o 6 6 7 - obj-$(CONFIG_CPU_MIPS32) += dump_tlb.o 8 - obj-$(CONFIG_CPU_MIPS64) += dump_tlb.o 7 + obj-$(CONFIG_CPU_MIPS32_R1) += dump_tlb.o 8 + obj-$(CONFIG_CPU_MIPS64_R1) += dump_tlb.o 9 9 obj-$(CONFIG_CPU_NEVADA) += dump_tlb.o 10 10 obj-$(CONFIG_CPU_R10000) += dump_tlb.o 11 11 obj-$(CONFIG_CPU_R3000) += r3k_dump_tlb.o
+2 -2
arch/mips/lib-64/Makefile
··· 4 4 5 5 lib-y += csum_partial.o memset.o watch.o 6 6 7 - obj-$(CONFIG_CPU_MIPS32) += dump_tlb.o 8 - obj-$(CONFIG_CPU_MIPS64) += dump_tlb.o 7 + obj-$(CONFIG_CPU_MIPS32_R1) += dump_tlb.o 8 + obj-$(CONFIG_CPU_MIPS64_R1) += dump_tlb.o 9 9 obj-$(CONFIG_CPU_NEVADA) += dump_tlb.o 10 10 obj-$(CONFIG_CPU_R10000) += dump_tlb.o 11 11 obj-$(CONFIG_CPU_R3000) += r3k_dump_tlb.o
+2 -2
arch/mips/mm/Makefile
··· 9 9 obj-$(CONFIG_64BIT) += pgtable-64.o 10 10 obj-$(CONFIG_HIGHMEM) += highmem.o 11 11 12 - obj-$(CONFIG_CPU_MIPS32) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o 13 - obj-$(CONFIG_CPU_MIPS64) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o 12 + obj-$(CONFIG_CPU_MIPS32_R1) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o 13 + obj-$(CONFIG_CPU_MIPS64_R1) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o 14 14 obj-$(CONFIG_CPU_NEVADA) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o 15 15 obj-$(CONFIG_CPU_R10000) += c-r4k.o cex-gen.o pg-r4k.o tlb-andes.o 16 16 obj-$(CONFIG_CPU_R3000) += c-r3k.o tlb-r3k.o pg-r4k.o
+2 -2
arch/mips/mm/cache.c
··· 118 118 #if defined(CONFIG_CPU_R4X00) || defined(CONFIG_CPU_VR41XX) || \ 119 119 defined(CONFIG_CPU_R4300) || defined(CONFIG_CPU_R5000) || \ 120 120 defined(CONFIG_CPU_NEVADA) || defined(CONFIG_CPU_R5432) || \ 121 - defined(CONFIG_CPU_R5500) || defined(CONFIG_CPU_MIPS32) || \ 122 - defined(CONFIG_CPU_MIPS64) || defined(CONFIG_CPU_TX49XX) || \ 121 + defined(CONFIG_CPU_R5500) || defined(CONFIG_CPU_MIPS32_R1) || \ 122 + defined(CONFIG_CPU_MIPS64_R1) || defined(CONFIG_CPU_TX49XX) || \ 123 123 defined(CONFIG_CPU_RM7000) || defined(CONFIG_CPU_RM9000) 124 124 ld_mmu_r4xx0(); 125 125 #endif
+1 -1
arch/mips/mm/tlb-r4k.c
··· 263 263 idx = read_c0_index(); 264 264 ptep = pte_offset_map(pmdp, address); 265 265 266 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 266 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 267 267 write_c0_entrylo0(ptep->pte_high); 268 268 ptep++; 269 269 write_c0_entrylo1(ptep->pte_high);
+1 -1
arch/mips/mm/tlb-sb1.c
··· 320 320 idx = read_c0_index(); 321 321 ptep = pte_offset_map(pmdp, address); 322 322 323 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 323 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 324 324 write_c0_entrylo0(ptep->pte_high); 325 325 ptep++; 326 326 write_c0_entrylo1(ptep->pte_high);
+2 -2
arch/mips/oprofile/Makefile
··· 10 10 11 11 oprofile-y := $(DRIVER_OBJS) common.o 12 12 13 - oprofile-$(CONFIG_CPU_MIPS32) += op_model_mipsxx.o 14 - oprofile-$(CONFIG_CPU_MIPS64) += op_model_mipsxx.o 13 + oprofile-$(CONFIG_CPU_MIPS32_R1) += op_model_mipsxx.o 14 + oprofile-$(CONFIG_CPU_MIPS64_R1) += op_model_mipsxx.o 15 15 oprofile-$(CONFIG_CPU_RM9000) += op_model_rm9000.o
+1 -1
include/asm-mips/addrspace.h
··· 131 131 || defined (CONFIG_CPU_R5000) \ 132 132 || defined (CONFIG_CPU_NEVADA) \ 133 133 || defined (CONFIG_CPU_TX49XX) \ 134 - || defined (CONFIG_CPU_MIPS64) 134 + || defined (CONFIG_CPU_MIPS64_R1) 135 135 #define KUSIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ 136 136 #define KUSIZE_64 _LLCONST_(0x0000010000000000) /* 2^^40 */ 137 137 #define K0SIZE _LLCONST_(0x0000001000000000) /* 2^^36 */
+2 -2
include/asm-mips/mach-mips/cpu-feature-overrides.h
··· 14 14 /* 15 15 * CPU feature overrides for MIPS boards 16 16 */ 17 - #ifdef CONFIG_CPU_MIPS32 17 + #ifdef CONFIG_CPU_MIPS32_R1 18 18 #define cpu_has_tlb 1 19 19 #define cpu_has_4kex 1 20 20 #define cpu_has_4ktlb 1 ··· 39 39 /* #define cpu_has_subset_pcaches ? */ 40 40 #endif 41 41 42 - #ifdef CONFIG_CPU_MIPS64 42 + #ifdef CONFIG_CPU_MIPS64_R1 43 43 #define cpu_has_tlb 1 44 44 #define cpu_has_4kex 1 45 45 #define cpu_has_4ktlb 1
+1 -1
include/asm-mips/page.h
··· 76 76 * These are used to make use of C type-checking.. 77 77 */ 78 78 #ifdef CONFIG_64BIT_PHYS_ADDR 79 - #ifdef CONFIG_CPU_MIPS32 79 + #ifdef CONFIG_CPU_MIPS32_R1 80 80 typedef struct { unsigned long pte_low, pte_high; } pte_t; 81 81 #define pte_val(x) ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) 82 82 #else
+3 -3
include/asm-mips/pgtable-32.h
··· 116 116 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); 117 117 } 118 118 119 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 119 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 120 120 #define pte_page(x) pfn_to_page(pte_pfn(x)) 121 121 #define pte_pfn(x) ((unsigned long)((x).pte_high >> 6)) 122 122 static inline pte_t ··· 139 139 #define pte_pfn(x) ((unsigned long)((x).pte >> PAGE_SHIFT)) 140 140 #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) 141 141 #endif 142 - #endif /* defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) */ 142 + #endif /* defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) */ 143 143 144 144 #define __pgd_offset(address) pgd_index(address) 145 145 #define __pud_offset(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) ··· 202 202 */ 203 203 #define PTE_FILE_MAX_BITS 27 204 204 205 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 205 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 206 206 /* fixme */ 207 207 #define pte_to_pgoff(_pte) (((_pte).pte_high >> 6) + ((_pte).pte_high & 0x3f)) 208 208 #define pgoff_to_pte(off) \
+3 -3
include/asm-mips/pgtable-bits.h
··· 33 33 * unpredictable things. The code (when it is written) to deal with 34 34 * this problem will be in the update_mmu_cache() code for the r4k. 35 35 */ 36 - #if defined(CONFIG_CPU_MIPS32) && defined(CONFIG_64BIT_PHYS_ADDR) 36 + #if defined(CONFIG_CPU_MIPS32_R1) && defined(CONFIG_64BIT_PHYS_ADDR) 37 37 38 38 #define _PAGE_PRESENT (1<<6) /* implemented in software */ 39 39 #define _PAGE_READ (1<<7) /* implemented in software */ ··· 123 123 124 124 #endif 125 125 #endif 126 - #endif /* defined(CONFIG_CPU_MIPS32) && defined(CONFIG_64BIT_PHYS_ADDR) */ 126 + #endif /* defined(CONFIG_CPU_MIPS32_R1) && defined(CONFIG_64BIT_PHYS_ADDR) */ 127 127 128 128 #define __READABLE (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED) 129 129 #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED) ··· 140 140 #define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_COW 141 141 #endif 142 142 143 - #if defined(CONFIG_CPU_MIPS32) && defined(CONFIG_64BIT_PHYS_ADDR) 143 + #if defined(CONFIG_CPU_MIPS32_R1) && defined(CONFIG_64BIT_PHYS_ADDR) 144 144 #define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT >> 3) 145 145 #else 146 146 #define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT >> 9)
+3 -3
include/asm-mips/pgtable.h
··· 82 82 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 83 83 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 84 84 85 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 85 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 86 86 static inline void set_pte(pte_t *ptep, pte_t pte) 87 87 { 88 88 ptep->pte_high = pte.pte_high; ··· 170 170 * Undefined behaviour if not.. 171 171 */ 172 172 static inline int pte_user(pte_t pte) { BUG(); return 0; } 173 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 173 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 174 174 static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_READ; } 175 175 static inline int pte_write(pte_t pte) { return (pte).pte_low & _PAGE_WRITE; } 176 176 static inline int pte_dirty(pte_t pte) { return (pte).pte_low & _PAGE_MODIFIED; } ··· 329 329 */ 330 330 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) 331 331 332 - #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32) 332 + #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) 333 333 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) 334 334 { 335 335 pte.pte_low &= _PAGE_CHG_MASK;