diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-06-23 12:17:29 -0400 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-07-07 10:31:07 -0400 |
commit | f2d8cae1d56a28d4b2bcdaa4a6f7d551fd94be60 (patch) | |
tree | c63e1f1cef9ceefcf53c863ac1a1a2de6dd873ba | |
parent | fbaa8407304b28d9e768134cfa4188df6520149c (diff) |
ARM: mm: proc-arm1022: Use the new processor struct macros
Signed-off-by: Dave Martin <dave.martin@linaro.org>
-rw-r--r-- | arch/arm/mm/proc-arm1022.S | 52 |
1 files changed, 7 insertions, 45 deletions
diff --git a/arch/arm/mm/proc-arm1022.S b/arch/arm/mm/proc-arm1022.S index c8884c5413a2..d283cf3d06e3 100644 --- a/arch/arm/mm/proc-arm1022.S +++ b/arch/arm/mm/proc-arm1022.S | |||
@@ -339,17 +339,8 @@ ENTRY(arm1022_dma_unmap_area) | |||
339 | mov pc, lr | 339 | mov pc, lr |
340 | ENDPROC(arm1022_dma_unmap_area) | 340 | ENDPROC(arm1022_dma_unmap_area) |
341 | 341 | ||
342 | ENTRY(arm1022_cache_fns) | 342 | @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S) |
343 | .long arm1022_flush_icache_all | 343 | define_cache_functions arm1022 |
344 | .long arm1022_flush_kern_cache_all | ||
345 | .long arm1022_flush_user_cache_all | ||
346 | .long arm1022_flush_user_cache_range | ||
347 | .long arm1022_coherent_kern_range | ||
348 | .long arm1022_coherent_user_range | ||
349 | .long arm1022_flush_kern_dcache_area | ||
350 | .long arm1022_dma_map_area | ||
351 | .long arm1022_dma_unmap_area | ||
352 | .long arm1022_dma_flush_range | ||
353 | 344 | ||
354 | .align 5 | 345 | .align 5 |
355 | ENTRY(cpu_arm1022_dcache_clean_area) | 346 | ENTRY(cpu_arm1022_dcache_clean_area) |
@@ -441,43 +432,14 @@ arm1022_crval: | |||
441 | crval clear=0x00007f3f, mmuset=0x00003935, ucset=0x00001930 | 432 | crval clear=0x00007f3f, mmuset=0x00003935, ucset=0x00001930 |
442 | 433 | ||
443 | __INITDATA | 434 | __INITDATA |
444 | 435 | @ define struct processor (see <asm/proc-fns.h> and proc-macros.S) | |
445 | /* | 436 | define_processor_functions arm1022, dabort=v4t_early_abort, pabort=legacy_pabort |
446 | * Purpose : Function pointers used to access above functions - all calls | ||
447 | * come through these | ||
448 | */ | ||
449 | .type arm1022_processor_functions, #object | ||
450 | arm1022_processor_functions: | ||
451 | .word v4t_early_abort | ||
452 | .word legacy_pabort | ||
453 | .word cpu_arm1022_proc_init | ||
454 | .word cpu_arm1022_proc_fin | ||
455 | .word cpu_arm1022_reset | ||
456 | .word cpu_arm1022_do_idle | ||
457 | .word cpu_arm1022_dcache_clean_area | ||
458 | .word cpu_arm1022_switch_mm | ||
459 | .word cpu_arm1022_set_pte_ext | ||
460 | .word 0 | ||
461 | .word 0 | ||
462 | .word 0 | ||
463 | .size arm1022_processor_functions, . - arm1022_processor_functions | ||
464 | 437 | ||
465 | .section ".rodata" | 438 | .section ".rodata" |
466 | 439 | ||
467 | .type cpu_arch_name, #object | 440 | string cpu_arch_name, "armv5te" |
468 | cpu_arch_name: | 441 | string cpu_elf_name, "v5" |
469 | .asciz "armv5te" | 442 | string cpu_arm1022_name, "ARM1022" |
470 | .size cpu_arch_name, . - cpu_arch_name | ||
471 | |||
472 | .type cpu_elf_name, #object | ||
473 | cpu_elf_name: | ||
474 | .asciz "v5" | ||
475 | .size cpu_elf_name, . - cpu_elf_name | ||
476 | |||
477 | .type cpu_arm1022_name, #object | ||
478 | cpu_arm1022_name: | ||
479 | .asciz "ARM1022" | ||
480 | .size cpu_arm1022_name, . - cpu_arm1022_name | ||
481 | 443 | ||
482 | .align | 444 | .align |
483 | 445 | ||