diff options
Diffstat (limited to 'arch/arm/mm/proc-arm720.S')
-rw-r--r-- | arch/arm/mm/proc-arm720.S | 85 |
1 files changed, 17 insertions, 68 deletions
diff --git a/arch/arm/mm/proc-arm720.S b/arch/arm/mm/proc-arm720.S index 7a06e5964f59..55f4e290665a 100644 --- a/arch/arm/mm/proc-arm720.S +++ b/arch/arm/mm/proc-arm720.S | |||
@@ -169,46 +169,15 @@ arm720_crval: | |||
169 | crval clear=0x00002f3f, mmuset=0x0000213d, ucset=0x00000130 | 169 | crval clear=0x00002f3f, mmuset=0x0000213d, ucset=0x00000130 |
170 | 170 | ||
171 | __INITDATA | 171 | __INITDATA |
172 | 172 | @ define struct processor (see <asm/proc-fns.h> and proc-macros.S) | |
173 | /* | 173 | define_processor_functions arm720, dabort=v4t_late_abort, pabort=legacy_pabort |
174 | * Purpose : Function pointers used to access above functions - all calls | ||
175 | * come through these | ||
176 | */ | ||
177 | .type arm720_processor_functions, #object | ||
178 | ENTRY(arm720_processor_functions) | ||
179 | .word v4t_late_abort | ||
180 | .word legacy_pabort | ||
181 | .word cpu_arm720_proc_init | ||
182 | .word cpu_arm720_proc_fin | ||
183 | .word cpu_arm720_reset | ||
184 | .word cpu_arm720_do_idle | ||
185 | .word cpu_arm720_dcache_clean_area | ||
186 | .word cpu_arm720_switch_mm | ||
187 | .word cpu_arm720_set_pte_ext | ||
188 | .word 0 | ||
189 | .word 0 | ||
190 | .word 0 | ||
191 | .size arm720_processor_functions, . - arm720_processor_functions | ||
192 | 174 | ||
193 | .section ".rodata" | 175 | .section ".rodata" |
194 | 176 | ||
195 | .type cpu_arch_name, #object | 177 | string cpu_arch_name, "armv4t" |
196 | cpu_arch_name: .asciz "armv4t" | 178 | string cpu_elf_name, "v4" |
197 | .size cpu_arch_name, . - cpu_arch_name | 179 | string cpu_arm710_name, "ARM710T" |
198 | 180 | string cpu_arm720_name, "ARM720T" | |
199 | .type cpu_elf_name, #object | ||
200 | cpu_elf_name: .asciz "v4" | ||
201 | .size cpu_elf_name, . - cpu_elf_name | ||
202 | |||
203 | .type cpu_arm710_name, #object | ||
204 | cpu_arm710_name: | ||
205 | .asciz "ARM710T" | ||
206 | .size cpu_arm710_name, . - cpu_arm710_name | ||
207 | |||
208 | .type cpu_arm720_name, #object | ||
209 | cpu_arm720_name: | ||
210 | .asciz "ARM720T" | ||
211 | .size cpu_arm720_name, . - cpu_arm720_name | ||
212 | 181 | ||
213 | .align | 182 | .align |
214 | 183 | ||
@@ -218,10 +187,11 @@ cpu_arm720_name: | |||
218 | 187 | ||
219 | .section ".proc.info.init", #alloc, #execinstr | 188 | .section ".proc.info.init", #alloc, #execinstr |
220 | 189 | ||
221 | .type __arm710_proc_info, #object | 190 | .macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req |
222 | __arm710_proc_info: | 191 | .type __\name\()_proc_info,#object |
223 | .long 0x41807100 @ cpu_val | 192 | __\name\()_proc_info: |
224 | .long 0xffffff00 @ cpu_mask | 193 | .long \cpu_val |
194 | .long \cpu_mask | ||
225 | .long PMD_TYPE_SECT | \ | 195 | .long PMD_TYPE_SECT | \ |
226 | PMD_SECT_BUFFERABLE | \ | 196 | PMD_SECT_BUFFERABLE | \ |
227 | PMD_SECT_CACHEABLE | \ | 197 | PMD_SECT_CACHEABLE | \ |
@@ -232,38 +202,17 @@ __arm710_proc_info: | |||
232 | PMD_BIT4 | \ | 202 | PMD_BIT4 | \ |
233 | PMD_SECT_AP_WRITE | \ | 203 | PMD_SECT_AP_WRITE | \ |
234 | PMD_SECT_AP_READ | 204 | PMD_SECT_AP_READ |
235 | b __arm710_setup @ cpu_flush | 205 | b \cpu_flush @ cpu_flush |
236 | .long cpu_arch_name @ arch_name | 206 | .long cpu_arch_name @ arch_name |
237 | .long cpu_elf_name @ elf_name | 207 | .long cpu_elf_name @ elf_name |
238 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB @ elf_hwcap | 208 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB @ elf_hwcap |
239 | .long cpu_arm710_name @ name | 209 | .long \cpu_name |
240 | .long arm720_processor_functions | 210 | .long arm720_processor_functions |
241 | .long v4_tlb_fns | 211 | .long v4_tlb_fns |
242 | .long v4wt_user_fns | 212 | .long v4wt_user_fns |
243 | .long v4_cache_fns | 213 | .long v4_cache_fns |
244 | .size __arm710_proc_info, . - __arm710_proc_info | 214 | .size __\name\()_proc_info, . - __\name\()_proc_info |
215 | .endm | ||
245 | 216 | ||
246 | .type __arm720_proc_info, #object | 217 | arm720_proc_info arm710, 0x41807100, 0xffffff00, cpu_arm710_name, __arm710_setup |
247 | __arm720_proc_info: | 218 | arm720_proc_info arm720, 0x41807200, 0xffffff00, cpu_arm720_name, __arm720_setup |
248 | .long 0x41807200 @ cpu_val | ||
249 | .long 0xffffff00 @ cpu_mask | ||
250 | .long PMD_TYPE_SECT | \ | ||
251 | PMD_SECT_BUFFERABLE | \ | ||
252 | PMD_SECT_CACHEABLE | \ | ||
253 | PMD_BIT4 | \ | ||
254 | PMD_SECT_AP_WRITE | \ | ||
255 | PMD_SECT_AP_READ | ||
256 | .long PMD_TYPE_SECT | \ | ||
257 | PMD_BIT4 | \ | ||
258 | PMD_SECT_AP_WRITE | \ | ||
259 | PMD_SECT_AP_READ | ||
260 | b __arm720_setup @ cpu_flush | ||
261 | .long cpu_arch_name @ arch_name | ||
262 | .long cpu_elf_name @ elf_name | ||
263 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB @ elf_hwcap | ||
264 | .long cpu_arm720_name @ name | ||
265 | .long arm720_processor_functions | ||
266 | .long v4_tlb_fns | ||
267 | .long v4wt_user_fns | ||
268 | .long v4_cache_fns | ||
269 | .size __arm720_proc_info, . - __arm720_proc_info | ||