diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-06-23 12:20:31 -0400 |
---|---|---|
committer | Dave Martin <dave.martin@linaro.org> | 2011-07-07 10:31:09 -0400 |
commit | 6c240aec6fdcafd55905ae0b61d5047252da92d4 (patch) | |
tree | a3e261d6c72462487bccc450e24fe94cdac5a0d3 /arch/arm/mm | |
parent | f3e7383f2a97879cfd21a427350ceac1cfd1f9bc (diff) |
ARM: mm: proc-arm925: 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-arm925.S | 88 |
1 files changed, 16 insertions, 72 deletions
diff --git a/arch/arm/mm/proc-arm925.S b/arch/arm/mm/proc-arm925.S index 541e4774eea1..51d494be057e 100644 --- a/arch/arm/mm/proc-arm925.S +++ b/arch/arm/mm/proc-arm925.S | |||
@@ -372,17 +372,8 @@ ENTRY(arm925_dma_unmap_area) | |||
372 | mov pc, lr | 372 | mov pc, lr |
373 | ENDPROC(arm925_dma_unmap_area) | 373 | ENDPROC(arm925_dma_unmap_area) |
374 | 374 | ||
375 | ENTRY(arm925_cache_fns) | 375 | @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S) |
376 | .long arm925_flush_icache_all | 376 | define_cache_functions arm925 |
377 | .long arm925_flush_kern_cache_all | ||
378 | .long arm925_flush_user_cache_all | ||
379 | .long arm925_flush_user_cache_range | ||
380 | .long arm925_coherent_kern_range | ||
381 | .long arm925_coherent_user_range | ||
382 | .long arm925_flush_kern_dcache_area | ||
383 | .long arm925_dma_map_area | ||
384 | .long arm925_dma_unmap_area | ||
385 | .long arm925_dma_flush_range | ||
386 | 377 | ||
387 | ENTRY(cpu_arm925_dcache_clean_area) | 378 | ENTRY(cpu_arm925_dcache_clean_area) |
388 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH | 379 | #ifndef CONFIG_CPU_DCACHE_WRITETHROUGH |
@@ -487,52 +478,24 @@ arm925_crval: | |||
487 | crval clear=0x00007f3f, mmuset=0x0000313d, ucset=0x00001130 | 478 | crval clear=0x00007f3f, mmuset=0x0000313d, ucset=0x00001130 |
488 | 479 | ||
489 | __INITDATA | 480 | __INITDATA |
490 | 481 | @ define struct processor (see <asm/proc-fns.h> and proc-macros.S) | |
491 | /* | 482 | define_processor_functions arm925, dabort=v4t_early_abort, pabort=legacy_pabort |
492 | * Purpose : Function pointers used to access above functions - all calls | ||
493 | * come through these | ||
494 | */ | ||
495 | .type arm925_processor_functions, #object | ||
496 | arm925_processor_functions: | ||
497 | .word v4t_early_abort | ||
498 | .word legacy_pabort | ||
499 | .word cpu_arm925_proc_init | ||
500 | .word cpu_arm925_proc_fin | ||
501 | .word cpu_arm925_reset | ||
502 | .word cpu_arm925_do_idle | ||
503 | .word cpu_arm925_dcache_clean_area | ||
504 | .word cpu_arm925_switch_mm | ||
505 | .word cpu_arm925_set_pte_ext | ||
506 | .word 0 | ||
507 | .word 0 | ||
508 | .word 0 | ||
509 | .size arm925_processor_functions, . - arm925_processor_functions | ||
510 | 483 | ||
511 | .section ".rodata" | 484 | .section ".rodata" |
512 | 485 | ||
513 | .type cpu_arch_name, #object | 486 | string cpu_arch_name, "armv4t" |
514 | cpu_arch_name: | 487 | string cpu_elf_name, "v4" |
515 | .asciz "armv4t" | 488 | string cpu_arm925_name, "ARM925T" |
516 | .size cpu_arch_name, . - cpu_arch_name | ||
517 | |||
518 | .type cpu_elf_name, #object | ||
519 | cpu_elf_name: | ||
520 | .asciz "v4" | ||
521 | .size cpu_elf_name, . - cpu_elf_name | ||
522 | |||
523 | .type cpu_arm925_name, #object | ||
524 | cpu_arm925_name: | ||
525 | .asciz "ARM925T" | ||
526 | .size cpu_arm925_name, . - cpu_arm925_name | ||
527 | 489 | ||
528 | .align | 490 | .align |
529 | 491 | ||
530 | .section ".proc.info.init", #alloc, #execinstr | 492 | .section ".proc.info.init", #alloc, #execinstr |
531 | 493 | ||
532 | .type __arm925_proc_info,#object | 494 | .macro arm925_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache |
533 | __arm925_proc_info: | 495 | .type __\name\()_proc_info,#object |
534 | .long 0x54029250 | 496 | __\name\()_proc_info: |
535 | .long 0xfffffff0 | 497 | .long \cpu_val |
498 | .long \cpu_mask | ||
536 | .long PMD_TYPE_SECT | \ | 499 | .long PMD_TYPE_SECT | \ |
537 | PMD_BIT4 | \ | 500 | PMD_BIT4 | \ |
538 | PMD_SECT_AP_WRITE | \ | 501 | PMD_SECT_AP_WRITE | \ |
@@ -550,27 +513,8 @@ __arm925_proc_info: | |||
550 | .long v4wbi_tlb_fns | 513 | .long v4wbi_tlb_fns |
551 | .long v4wb_user_fns | 514 | .long v4wb_user_fns |
552 | .long arm925_cache_fns | 515 | .long arm925_cache_fns |
553 | .size __arm925_proc_info, . - __arm925_proc_info | 516 | .size __\name\()_proc_info, . - __\name\()_proc_info |
517 | .endm | ||
554 | 518 | ||
555 | .type __arm915_proc_info,#object | 519 | arm925_proc_info arm925, 0x54029250, 0xfffffff0, cpu_arm925_name |
556 | __arm915_proc_info: | 520 | arm925_proc_info arm915, 0x54029150, 0xfffffff0, cpu_arm925_name |
557 | .long 0x54029150 | ||
558 | .long 0xfffffff0 | ||
559 | .long PMD_TYPE_SECT | \ | ||
560 | PMD_BIT4 | \ | ||
561 | PMD_SECT_AP_WRITE | \ | ||
562 | PMD_SECT_AP_READ | ||
563 | .long PMD_TYPE_SECT | \ | ||
564 | PMD_BIT4 | \ | ||
565 | PMD_SECT_AP_WRITE | \ | ||
566 | PMD_SECT_AP_READ | ||
567 | b __arm925_setup | ||
568 | .long cpu_arch_name | ||
569 | .long cpu_elf_name | ||
570 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | ||
571 | .long cpu_arm925_name | ||
572 | .long arm925_processor_functions | ||
573 | .long v4wbi_tlb_fns | ||
574 | .long v4wb_user_fns | ||
575 | .long arm925_cache_fns | ||
576 | .size __arm925_proc_info, . - __arm925_proc_info | ||