diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-06-23 12:21:02 -0400 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-07-07 10:31:09 -0400 |
commit | b3755801479a7b6c61dec5e49897486805d003a5 (patch) | |
tree | 9507da4af90ffc100c1ef764f8a774f79a5a1915 /arch/arm/mm | |
parent | be90da45a97ac833d92eb9cd8b06df3bc5cf561b (diff) |
ARM: mm: proc-arm940: Use the new processor struct macros
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/proc-arm940.S | 51 |
1 files changed, 7 insertions, 44 deletions
diff --git a/arch/arm/mm/proc-arm940.S b/arch/arm/mm/proc-arm940.S index 26aea3f71c2..ac750d50615 100644 --- a/arch/arm/mm/proc-arm940.S +++ b/arch/arm/mm/proc-arm940.S | |||
@@ -264,17 +264,8 @@ ENTRY(arm940_dma_unmap_area) | |||
264 | mov pc, lr | 264 | mov pc, lr |
265 | ENDPROC(arm940_dma_unmap_area) | 265 | ENDPROC(arm940_dma_unmap_area) |
266 | 266 | ||
267 | ENTRY(arm940_cache_fns) | 267 | @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S) |
268 | .long arm940_flush_icache_all | 268 | define_cache_functions arm940 |
269 | .long arm940_flush_kern_cache_all | ||
270 | .long arm940_flush_user_cache_all | ||
271 | .long arm940_flush_user_cache_range | ||
272 | .long arm940_coherent_kern_range | ||
273 | .long arm940_coherent_user_range | ||
274 | .long arm940_flush_kern_dcache_area | ||
275 | .long arm940_dma_map_area | ||
276 | .long arm940_dma_unmap_area | ||
277 | .long arm940_dma_flush_range | ||
278 | 269 | ||
279 | __CPUINIT | 270 | __CPUINIT |
280 | 271 | ||
@@ -348,42 +339,14 @@ __arm940_setup: | |||
348 | 339 | ||
349 | __INITDATA | 340 | __INITDATA |
350 | 341 | ||
351 | /* | 342 | @ define struct processor (see <asm/proc-fns.h> and proc-macros.S) |
352 | * Purpose : Function pointers used to access above functions - all calls | 343 | define_processor_functions arm940, dabort=nommu_early_abort, pabort=legacy_pabort, nommu=1 |
353 | * come through these | ||
354 | */ | ||
355 | .type arm940_processor_functions, #object | ||
356 | ENTRY(arm940_processor_functions) | ||
357 | .word nommu_early_abort | ||
358 | .word legacy_pabort | ||
359 | .word cpu_arm940_proc_init | ||
360 | .word cpu_arm940_proc_fin | ||
361 | .word cpu_arm940_reset | ||
362 | .word cpu_arm940_do_idle | ||
363 | .word cpu_arm940_dcache_clean_area | ||
364 | .word cpu_arm940_switch_mm | ||
365 | .word 0 @ cpu_*_set_pte | ||
366 | .word 0 | ||
367 | .word 0 | ||
368 | .word 0 | ||
369 | .size arm940_processor_functions, . - arm940_processor_functions | ||
370 | 344 | ||
371 | .section ".rodata" | 345 | .section ".rodata" |
372 | 346 | ||
373 | .type cpu_arch_name, #object | 347 | string cpu_arch_name, "armv4t" |
374 | cpu_arch_name: | 348 | string cpu_elf_name, "v4" |
375 | .asciz "armv4t" | 349 | string cpu_arm940_name, "ARM940T" |
376 | .size cpu_arch_name, . - cpu_arch_name | ||
377 | |||
378 | .type cpu_elf_name, #object | ||
379 | cpu_elf_name: | ||
380 | .asciz "v4" | ||
381 | .size cpu_elf_name, . - cpu_elf_name | ||
382 | |||
383 | .type cpu_arm940_name, #object | ||
384 | cpu_arm940_name: | ||
385 | .ascii "ARM940T" | ||
386 | .size cpu_arm940_name, . - cpu_arm940_name | ||
387 | 350 | ||
388 | .align | 351 | .align |
389 | 352 | ||