diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-06-23 12:17:00 -0400 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-07-07 10:31:07 -0400 |
commit | fbaa8407304b28d9e768134cfa4188df6520149c (patch) | |
tree | 9446617b6e04e3436966d4583c9daf3826e8cb1c /arch | |
parent | 56d916509bf5ec3f5342692d31556e822301029e (diff) |
ARM: mm: proc-arm1020e: Use the new processor struct macros
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mm/proc-arm1020e.S | 52 |
1 files changed, 7 insertions, 45 deletions
diff --git a/arch/arm/mm/proc-arm1020e.S b/arch/arm/mm/proc-arm1020e.S index 4ce947c19623..4251421c0ed5 100644 --- a/arch/arm/mm/proc-arm1020e.S +++ b/arch/arm/mm/proc-arm1020e.S | |||
@@ -350,17 +350,8 @@ ENTRY(arm1020e_dma_unmap_area) | |||
350 | mov pc, lr | 350 | mov pc, lr |
351 | ENDPROC(arm1020e_dma_unmap_area) | 351 | ENDPROC(arm1020e_dma_unmap_area) |
352 | 352 | ||
353 | ENTRY(arm1020e_cache_fns) | 353 | @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S) |
354 | .long arm1020e_flush_icache_all | 354 | define_cache_functions arm1020e |
355 | .long arm1020e_flush_kern_cache_all | ||
356 | .long arm1020e_flush_user_cache_all | ||
357 | .long arm1020e_flush_user_cache_range | ||
358 | .long arm1020e_coherent_kern_range | ||
359 | .long arm1020e_coherent_user_range | ||
360 | .long arm1020e_flush_kern_dcache_area | ||
361 | .long arm1020e_dma_map_area | ||
362 | .long arm1020e_dma_unmap_area | ||
363 | .long arm1020e_dma_flush_range | ||
364 | 355 | ||
365 | .align 5 | 356 | .align 5 |
366 | ENTRY(cpu_arm1020e_dcache_clean_area) | 357 | ENTRY(cpu_arm1020e_dcache_clean_area) |
@@ -458,43 +449,14 @@ arm1020e_crval: | |||
458 | crval clear=0x00007f3f, mmuset=0x00003935, ucset=0x00001930 | 449 | crval clear=0x00007f3f, mmuset=0x00003935, ucset=0x00001930 |
459 | 450 | ||
460 | __INITDATA | 451 | __INITDATA |
461 | 452 | @ define struct processor (see <asm/proc-fns.h> and proc-macros.S) | |
462 | /* | 453 | define_processor_functions arm1020e, dabort=v4t_early_abort, pabort=legacy_pabort |
463 | * Purpose : Function pointers used to access above functions - all calls | ||
464 | * come through these | ||
465 | */ | ||
466 | .type arm1020e_processor_functions, #object | ||
467 | arm1020e_processor_functions: | ||
468 | .word v4t_early_abort | ||
469 | .word legacy_pabort | ||
470 | .word cpu_arm1020e_proc_init | ||
471 | .word cpu_arm1020e_proc_fin | ||
472 | .word cpu_arm1020e_reset | ||
473 | .word cpu_arm1020e_do_idle | ||
474 | .word cpu_arm1020e_dcache_clean_area | ||
475 | .word cpu_arm1020e_switch_mm | ||
476 | .word cpu_arm1020e_set_pte_ext | ||
477 | .word 0 | ||
478 | .word 0 | ||
479 | .word 0 | ||
480 | .size arm1020e_processor_functions, . - arm1020e_processor_functions | ||
481 | 454 | ||
482 | .section ".rodata" | 455 | .section ".rodata" |
483 | 456 | ||
484 | .type cpu_arch_name, #object | 457 | string cpu_arch_name, "armv5te" |
485 | cpu_arch_name: | 458 | string cpu_elf_name, "v5" |
486 | .asciz "armv5te" | 459 | string cpu_arm1020e_name, "ARM1020E" |
487 | .size cpu_arch_name, . - cpu_arch_name | ||
488 | |||
489 | .type cpu_elf_name, #object | ||
490 | cpu_elf_name: | ||
491 | .asciz "v5" | ||
492 | .size cpu_elf_name, . - cpu_elf_name | ||
493 | |||
494 | .type cpu_arm1020e_name, #object | ||
495 | cpu_arm1020e_name: | ||
496 | .asciz "ARM1020E" | ||
497 | .size cpu_arm1020e_name, . - cpu_arm1020e_name | ||
498 | 460 | ||
499 | .align | 461 | .align |
500 | 462 | ||