diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-07-06 08:08:11 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:37 -0400 |
commit | 6e760c8dae7d6c47eff011dd4aad53c94d30494b (patch) | |
tree | 141699aef6e0a3b1fef03ec0c5cc8d8958851078 /include | |
parent | ca4973dd559b702e265688e724f356d289b8cd67 (diff) |
Rename CONFIG_CPU_MIPS{32,64} to CONFIG_CPU_MIPS{32|64}_R1.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/addrspace.h | 2 | ||||
-rw-r--r-- | include/asm-mips/mach-mips/cpu-feature-overrides.h | 4 | ||||
-rw-r--r-- | include/asm-mips/page.h | 2 | ||||
-rw-r--r-- | include/asm-mips/pgtable-32.h | 6 | ||||
-rw-r--r-- | include/asm-mips/pgtable-bits.h | 6 | ||||
-rw-r--r-- | include/asm-mips/pgtable.h | 6 |
6 files changed, 13 insertions, 13 deletions
diff --git a/include/asm-mips/addrspace.h b/include/asm-mips/addrspace.h index c806eef41e7f..a54cdd417956 100644 --- a/include/asm-mips/addrspace.h +++ b/include/asm-mips/addrspace.h | |||
@@ -131,7 +131,7 @@ | |||
131 | || defined (CONFIG_CPU_R5000) \ | 131 | || defined (CONFIG_CPU_R5000) \ |
132 | || defined (CONFIG_CPU_NEVADA) \ | 132 | || defined (CONFIG_CPU_NEVADA) \ |
133 | || defined (CONFIG_CPU_TX49XX) \ | 133 | || defined (CONFIG_CPU_TX49XX) \ |
134 | || defined (CONFIG_CPU_MIPS64) | 134 | || defined (CONFIG_CPU_MIPS64_R1) |
135 | #define KUSIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ | 135 | #define KUSIZE _LLCONST_(0x0000010000000000) /* 2^^40 */ |
136 | #define KUSIZE_64 _LLCONST_(0x0000010000000000) /* 2^^40 */ | 136 | #define KUSIZE_64 _LLCONST_(0x0000010000000000) /* 2^^40 */ |
137 | #define K0SIZE _LLCONST_(0x0000001000000000) /* 2^^36 */ | 137 | #define K0SIZE _LLCONST_(0x0000001000000000) /* 2^^36 */ |
diff --git a/include/asm-mips/mach-mips/cpu-feature-overrides.h b/include/asm-mips/mach-mips/cpu-feature-overrides.h index 6f51be571bf0..7a1189fdf1aa 100644 --- a/include/asm-mips/mach-mips/cpu-feature-overrides.h +++ b/include/asm-mips/mach-mips/cpu-feature-overrides.h | |||
@@ -14,7 +14,7 @@ | |||
14 | /* | 14 | /* |
15 | * CPU feature overrides for MIPS boards | 15 | * CPU feature overrides for MIPS boards |
16 | */ | 16 | */ |
17 | #ifdef CONFIG_CPU_MIPS32 | 17 | #ifdef CONFIG_CPU_MIPS32_R1 |
18 | #define cpu_has_tlb 1 | 18 | #define cpu_has_tlb 1 |
19 | #define cpu_has_4kex 1 | 19 | #define cpu_has_4kex 1 |
20 | #define cpu_has_4ktlb 1 | 20 | #define cpu_has_4ktlb 1 |
@@ -39,7 +39,7 @@ | |||
39 | /* #define cpu_has_subset_pcaches ? */ | 39 | /* #define cpu_has_subset_pcaches ? */ |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifdef CONFIG_CPU_MIPS64 | 42 | #ifdef CONFIG_CPU_MIPS64_R1 |
43 | #define cpu_has_tlb 1 | 43 | #define cpu_has_tlb 1 |
44 | #define cpu_has_4kex 1 | 44 | #define cpu_has_4kex 1 |
45 | #define cpu_has_4ktlb 1 | 45 | #define cpu_has_4ktlb 1 |
diff --git a/include/asm-mips/page.h b/include/asm-mips/page.h index ee25a779bf49..0076a537cf0c 100644 --- a/include/asm-mips/page.h +++ b/include/asm-mips/page.h | |||
@@ -76,7 +76,7 @@ static inline void copy_user_page(void *vto, void *vfrom, unsigned long vaddr, | |||
76 | * These are used to make use of C type-checking.. | 76 | * These are used to make use of C type-checking.. |
77 | */ | 77 | */ |
78 | #ifdef CONFIG_64BIT_PHYS_ADDR | 78 | #ifdef CONFIG_64BIT_PHYS_ADDR |
79 | #ifdef CONFIG_CPU_MIPS32 | 79 | #ifdef CONFIG_CPU_MIPS32_R1 |
80 | typedef struct { unsigned long pte_low, pte_high; } pte_t; | 80 | typedef struct { unsigned long pte_low, pte_high; } pte_t; |
81 | #define pte_val(x) ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) | 81 | #define pte_val(x) ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) |
82 | #else | 82 | #else |
diff --git a/include/asm-mips/pgtable-32.h b/include/asm-mips/pgtable-32.h index 9b4d39d9f2f0..217afc375a84 100644 --- a/include/asm-mips/pgtable-32.h +++ b/include/asm-mips/pgtable-32.h | |||
@@ -116,7 +116,7 @@ static inline void pmd_clear(pmd_t *pmdp) | |||
116 | pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); | 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 | #define pte_page(x) pfn_to_page(pte_pfn(x)) | 120 | #define pte_page(x) pfn_to_page(pte_pfn(x)) |
121 | #define pte_pfn(x) ((unsigned long)((x).pte_high >> 6)) | 121 | #define pte_pfn(x) ((unsigned long)((x).pte_high >> 6)) |
122 | static inline pte_t | 122 | static inline pte_t |
@@ -139,7 +139,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
139 | #define pte_pfn(x) ((unsigned long)((x).pte >> PAGE_SHIFT)) | 139 | #define pte_pfn(x) ((unsigned long)((x).pte >> PAGE_SHIFT)) |
140 | #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) | 140 | #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) |
141 | #endif | 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 | #define __pgd_offset(address) pgd_index(address) | 144 | #define __pgd_offset(address) pgd_index(address) |
145 | #define __pud_offset(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) | 145 | #define __pud_offset(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD-1)) |
@@ -202,7 +202,7 @@ pfn_pte(unsigned long pfn, pgprot_t prot) | |||
202 | */ | 202 | */ |
203 | #define PTE_FILE_MAX_BITS 27 | 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 | /* fixme */ | 206 | /* fixme */ |
207 | #define pte_to_pgoff(_pte) (((_pte).pte_high >> 6) + ((_pte).pte_high & 0x3f)) | 207 | #define pte_to_pgoff(_pte) (((_pte).pte_high >> 6) + ((_pte).pte_high & 0x3f)) |
208 | #define pgoff_to_pte(off) \ | 208 | #define pgoff_to_pte(off) \ |
diff --git a/include/asm-mips/pgtable-bits.h b/include/asm-mips/pgtable-bits.h index 3aad751ccd5f..01e76e932e3f 100644 --- a/include/asm-mips/pgtable-bits.h +++ b/include/asm-mips/pgtable-bits.h | |||
@@ -33,7 +33,7 @@ | |||
33 | * unpredictable things. The code (when it is written) to deal with | 33 | * unpredictable things. The code (when it is written) to deal with |
34 | * this problem will be in the update_mmu_cache() code for the r4k. | 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 | #define _PAGE_PRESENT (1<<6) /* implemented in software */ | 38 | #define _PAGE_PRESENT (1<<6) /* implemented in software */ |
39 | #define _PAGE_READ (1<<7) /* implemented in software */ | 39 | #define _PAGE_READ (1<<7) /* implemented in software */ |
@@ -123,7 +123,7 @@ | |||
123 | 123 | ||
124 | #endif | 124 | #endif |
125 | #endif | 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 | #define __READABLE (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED) | 128 | #define __READABLE (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED) |
129 | #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED) | 129 | #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED) |
@@ -140,7 +140,7 @@ | |||
140 | #define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_COW | 140 | #define PAGE_CACHABLE_DEFAULT _CACHE_CACHABLE_COW |
141 | #endif | 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 | #define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT >> 3) | 144 | #define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT >> 3) |
145 | #else | 145 | #else |
146 | #define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT >> 9) | 146 | #define CONF_CM_DEFAULT (PAGE_CACHABLE_DEFAULT >> 9) |
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index 754ec6c5a8f7..9f75baf11e25 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h | |||
@@ -82,7 +82,7 @@ extern void paging_init(void); | |||
82 | #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) | 82 | #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) |
83 | #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) | 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 | static inline void set_pte(pte_t *ptep, pte_t pte) | 86 | static inline void set_pte(pte_t *ptep, pte_t pte) |
87 | { | 87 | { |
88 | ptep->pte_high = pte.pte_high; | 88 | ptep->pte_high = pte.pte_high; |
@@ -170,7 +170,7 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; | |||
170 | * Undefined behaviour if not.. | 170 | * Undefined behaviour if not.. |
171 | */ | 171 | */ |
172 | static inline int pte_user(pte_t pte) { BUG(); return 0; } | 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 | static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_READ; } | 174 | static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_READ; } |
175 | static inline int pte_write(pte_t pte) { return (pte).pte_low & _PAGE_WRITE; } | 175 | static inline int pte_write(pte_t pte) { return (pte).pte_low & _PAGE_WRITE; } |
176 | static inline int pte_dirty(pte_t pte) { return (pte).pte_low & _PAGE_MODIFIED; } | 176 | static inline int pte_dirty(pte_t pte) { return (pte).pte_low & _PAGE_MODIFIED; } |
@@ -329,7 +329,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t _prot) | |||
329 | */ | 329 | */ |
330 | #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) | 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 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | 333 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) |
334 | { | 334 | { |
335 | pte.pte_low &= _PAGE_CHG_MASK; | 335 | pte.pte_low &= _PAGE_CHG_MASK; |