diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-03-18 02:29:32 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-28 11:46:14 -0400 |
commit | bf35706f3d0929b413e90b32cf9dd453f200a570 (patch) | |
tree | 3d2105ed637a1b8cd47e7dd9a66db11a81fe1060 | |
parent | 0a6a78b8b3c1c1757fbeca4bbf518e44c70c9e4b (diff) |
ARM: 8314/1: replace PROCINFO embedded branch with relative offset
This patch replaces the 'branch to setup()' instructions embedded
in the PROCINFO structs with the offset to that setup function
relative to the base of the struct. This preserves the position
independent nature of that field, but uses a data item rather
than an instruction.
This is mainly done to prevent linker failures on large kernels,
where the setup function is out of reach for the branch.
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/kernel/head.S | 14 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm1020.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm1020e.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm1022.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm1026.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm720.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm740.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm7tdmi.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm920.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm922.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm925.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm926.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm940.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm946.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-arm9tdmi.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-fa526.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-feroceon.S | 5 | ||||
-rw-r--r-- | arch/arm/mm/proc-macros.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-mohawk.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-sa110.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-sa1100.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-v6.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-v7.S | 28 | ||||
-rw-r--r-- | arch/arm/mm/proc-v7m.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-xsc3.S | 4 | ||||
-rw-r--r-- | arch/arm/mm/proc-xscale.S | 4 |
26 files changed, 72 insertions, 67 deletions
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 01963273c07a..3637973a9708 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
@@ -138,9 +138,9 @@ ENTRY(stext) | |||
138 | @ mmu has been enabled | 138 | @ mmu has been enabled |
139 | adr lr, BSYM(1f) @ return (PIC) address | 139 | adr lr, BSYM(1f) @ return (PIC) address |
140 | mov r8, r4 @ set TTBR1 to swapper_pg_dir | 140 | mov r8, r4 @ set TTBR1 to swapper_pg_dir |
141 | ARM( add pc, r10, #PROCINFO_INITFUNC ) | 141 | ldr r12, [r10, #PROCINFO_INITFUNC] |
142 | THUMB( add r12, r10, #PROCINFO_INITFUNC ) | 142 | add r12, r12, r10 |
143 | THUMB( ret r12 ) | 143 | ret r12 |
144 | 1: b __enable_mmu | 144 | 1: b __enable_mmu |
145 | ENDPROC(stext) | 145 | ENDPROC(stext) |
146 | .ltorg | 146 | .ltorg |
@@ -386,10 +386,10 @@ ENTRY(secondary_startup) | |||
386 | ldr r8, [r7, lr] @ get secondary_data.swapper_pg_dir | 386 | ldr r8, [r7, lr] @ get secondary_data.swapper_pg_dir |
387 | adr lr, BSYM(__enable_mmu) @ return address | 387 | adr lr, BSYM(__enable_mmu) @ return address |
388 | mov r13, r12 @ __secondary_switched address | 388 | mov r13, r12 @ __secondary_switched address |
389 | ARM( add pc, r10, #PROCINFO_INITFUNC ) @ initialise processor | 389 | ldr r12, [r10, #PROCINFO_INITFUNC] |
390 | @ (return control reg) | 390 | add r12, r12, r10 @ initialise processor |
391 | THUMB( add r12, r10, #PROCINFO_INITFUNC ) | 391 | @ (return control reg) |
392 | THUMB( ret r12 ) | 392 | ret r12 |
393 | ENDPROC(secondary_startup) | 393 | ENDPROC(secondary_startup) |
394 | ENDPROC(secondary_startup_arm) | 394 | ENDPROC(secondary_startup_arm) |
395 | 395 | ||
diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S index 86ee5d47ce3c..aa0519eed698 100644 --- a/arch/arm/mm/proc-arm1020.S +++ b/arch/arm/mm/proc-arm1020.S | |||
@@ -507,7 +507,7 @@ cpu_arm1020_name: | |||
507 | 507 | ||
508 | .align | 508 | .align |
509 | 509 | ||
510 | .section ".proc.info.init", #alloc, #execinstr | 510 | .section ".proc.info.init", #alloc |
511 | 511 | ||
512 | .type __arm1020_proc_info,#object | 512 | .type __arm1020_proc_info,#object |
513 | __arm1020_proc_info: | 513 | __arm1020_proc_info: |
@@ -519,7 +519,7 @@ __arm1020_proc_info: | |||
519 | .long PMD_TYPE_SECT | \ | 519 | .long PMD_TYPE_SECT | \ |
520 | PMD_SECT_AP_WRITE | \ | 520 | PMD_SECT_AP_WRITE | \ |
521 | PMD_SECT_AP_READ | 521 | PMD_SECT_AP_READ |
522 | b __arm1020_setup | 522 | initfn __arm1020_setup, __arm1020_proc_info |
523 | .long cpu_arch_name | 523 | .long cpu_arch_name |
524 | .long cpu_elf_name | 524 | .long cpu_elf_name |
525 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | 525 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB |
diff --git a/arch/arm/mm/proc-arm1020e.S b/arch/arm/mm/proc-arm1020e.S index a6331d78601f..bff4c7f70fd6 100644 --- a/arch/arm/mm/proc-arm1020e.S +++ b/arch/arm/mm/proc-arm1020e.S | |||
@@ -465,7 +465,7 @@ arm1020e_crval: | |||
465 | 465 | ||
466 | .align | 466 | .align |
467 | 467 | ||
468 | .section ".proc.info.init", #alloc, #execinstr | 468 | .section ".proc.info.init", #alloc |
469 | 469 | ||
470 | .type __arm1020e_proc_info,#object | 470 | .type __arm1020e_proc_info,#object |
471 | __arm1020e_proc_info: | 471 | __arm1020e_proc_info: |
@@ -479,7 +479,7 @@ __arm1020e_proc_info: | |||
479 | PMD_BIT4 | \ | 479 | PMD_BIT4 | \ |
480 | PMD_SECT_AP_WRITE | \ | 480 | PMD_SECT_AP_WRITE | \ |
481 | PMD_SECT_AP_READ | 481 | PMD_SECT_AP_READ |
482 | b __arm1020e_setup | 482 | initfn __arm1020e_setup, __arm1020e_proc_info |
483 | .long cpu_arch_name | 483 | .long cpu_arch_name |
484 | .long cpu_elf_name | 484 | .long cpu_elf_name |
485 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_EDSP | 485 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_EDSP |
diff --git a/arch/arm/mm/proc-arm1022.S b/arch/arm/mm/proc-arm1022.S index a126b7a59928..dbb2413fe04d 100644 --- a/arch/arm/mm/proc-arm1022.S +++ b/arch/arm/mm/proc-arm1022.S | |||
@@ -448,7 +448,7 @@ arm1022_crval: | |||
448 | 448 | ||
449 | .align | 449 | .align |
450 | 450 | ||
451 | .section ".proc.info.init", #alloc, #execinstr | 451 | .section ".proc.info.init", #alloc |
452 | 452 | ||
453 | .type __arm1022_proc_info,#object | 453 | .type __arm1022_proc_info,#object |
454 | __arm1022_proc_info: | 454 | __arm1022_proc_info: |
@@ -462,7 +462,7 @@ __arm1022_proc_info: | |||
462 | PMD_BIT4 | \ | 462 | PMD_BIT4 | \ |
463 | PMD_SECT_AP_WRITE | \ | 463 | PMD_SECT_AP_WRITE | \ |
464 | PMD_SECT_AP_READ | 464 | PMD_SECT_AP_READ |
465 | b __arm1022_setup | 465 | initfn __arm1022_setup, __arm1022_proc_info |
466 | .long cpu_arch_name | 466 | .long cpu_arch_name |
467 | .long cpu_elf_name | 467 | .long cpu_elf_name |
468 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_EDSP | 468 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_EDSP |
diff --git a/arch/arm/mm/proc-arm1026.S b/arch/arm/mm/proc-arm1026.S index fc294067e977..0b37b2cef9d3 100644 --- a/arch/arm/mm/proc-arm1026.S +++ b/arch/arm/mm/proc-arm1026.S | |||
@@ -442,7 +442,7 @@ arm1026_crval: | |||
442 | string cpu_arm1026_name, "ARM1026EJ-S" | 442 | string cpu_arm1026_name, "ARM1026EJ-S" |
443 | .align | 443 | .align |
444 | 444 | ||
445 | .section ".proc.info.init", #alloc, #execinstr | 445 | .section ".proc.info.init", #alloc |
446 | 446 | ||
447 | .type __arm1026_proc_info,#object | 447 | .type __arm1026_proc_info,#object |
448 | __arm1026_proc_info: | 448 | __arm1026_proc_info: |
@@ -456,7 +456,7 @@ __arm1026_proc_info: | |||
456 | PMD_BIT4 | \ | 456 | PMD_BIT4 | \ |
457 | PMD_SECT_AP_WRITE | \ | 457 | PMD_SECT_AP_WRITE | \ |
458 | PMD_SECT_AP_READ | 458 | PMD_SECT_AP_READ |
459 | b __arm1026_setup | 459 | initfn __arm1026_setup, __arm1026_proc_info |
460 | .long cpu_arch_name | 460 | .long cpu_arch_name |
461 | .long cpu_elf_name | 461 | .long cpu_elf_name |
462 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_JAVA | 462 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_JAVA |
diff --git a/arch/arm/mm/proc-arm720.S b/arch/arm/mm/proc-arm720.S index 2baa66b3ac9b..3651cd70e418 100644 --- a/arch/arm/mm/proc-arm720.S +++ b/arch/arm/mm/proc-arm720.S | |||
@@ -186,7 +186,7 @@ arm720_crval: | |||
186 | * See <asm/procinfo.h> for a definition of this structure. | 186 | * See <asm/procinfo.h> for a definition of this structure. |
187 | */ | 187 | */ |
188 | 188 | ||
189 | .section ".proc.info.init", #alloc, #execinstr | 189 | .section ".proc.info.init", #alloc |
190 | 190 | ||
191 | .macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req | 191 | .macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req |
192 | .type __\name\()_proc_info,#object | 192 | .type __\name\()_proc_info,#object |
@@ -203,7 +203,7 @@ __\name\()_proc_info: | |||
203 | PMD_BIT4 | \ | 203 | PMD_BIT4 | \ |
204 | PMD_SECT_AP_WRITE | \ | 204 | PMD_SECT_AP_WRITE | \ |
205 | PMD_SECT_AP_READ | 205 | PMD_SECT_AP_READ |
206 | b \cpu_flush @ cpu_flush | 206 | initfn \cpu_flush, __\name\()_proc_info @ cpu_flush |
207 | .long cpu_arch_name @ arch_name | 207 | .long cpu_arch_name @ arch_name |
208 | .long cpu_elf_name @ elf_name | 208 | .long cpu_elf_name @ elf_name |
209 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB @ elf_hwcap | 209 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB @ elf_hwcap |
diff --git a/arch/arm/mm/proc-arm740.S b/arch/arm/mm/proc-arm740.S index ac1ea6b3bce4..024fb7732407 100644 --- a/arch/arm/mm/proc-arm740.S +++ b/arch/arm/mm/proc-arm740.S | |||
@@ -132,14 +132,14 @@ __arm740_setup: | |||
132 | 132 | ||
133 | .align | 133 | .align |
134 | 134 | ||
135 | .section ".proc.info.init", #alloc, #execinstr | 135 | .section ".proc.info.init", #alloc |
136 | .type __arm740_proc_info,#object | 136 | .type __arm740_proc_info,#object |
137 | __arm740_proc_info: | 137 | __arm740_proc_info: |
138 | .long 0x41807400 | 138 | .long 0x41807400 |
139 | .long 0xfffffff0 | 139 | .long 0xfffffff0 |
140 | .long 0 | 140 | .long 0 |
141 | .long 0 | 141 | .long 0 |
142 | b __arm740_setup | 142 | initfn __arm740_setup, __arm740_proc_info |
143 | .long cpu_arch_name | 143 | .long cpu_arch_name |
144 | .long cpu_elf_name | 144 | .long cpu_elf_name |
145 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_26BIT | 145 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_26BIT |
diff --git a/arch/arm/mm/proc-arm7tdmi.S b/arch/arm/mm/proc-arm7tdmi.S index bf6ba4bc30ff..25472d94426d 100644 --- a/arch/arm/mm/proc-arm7tdmi.S +++ b/arch/arm/mm/proc-arm7tdmi.S | |||
@@ -76,7 +76,7 @@ __arm7tdmi_setup: | |||
76 | 76 | ||
77 | .align | 77 | .align |
78 | 78 | ||
79 | .section ".proc.info.init", #alloc, #execinstr | 79 | .section ".proc.info.init", #alloc |
80 | 80 | ||
81 | .macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \ | 81 | .macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \ |
82 | extra_hwcaps=0 | 82 | extra_hwcaps=0 |
@@ -86,7 +86,7 @@ __\name\()_proc_info: | |||
86 | .long \cpu_mask | 86 | .long \cpu_mask |
87 | .long 0 | 87 | .long 0 |
88 | .long 0 | 88 | .long 0 |
89 | b __arm7tdmi_setup | 89 | initfn __arm7tdmi_setup, __\name\()_proc_info |
90 | .long cpu_arch_name | 90 | .long cpu_arch_name |
91 | .long cpu_elf_name | 91 | .long cpu_elf_name |
92 | .long HWCAP_SWP | HWCAP_26BIT | ( \extra_hwcaps ) | 92 | .long HWCAP_SWP | HWCAP_26BIT | ( \extra_hwcaps ) |
diff --git a/arch/arm/mm/proc-arm920.S b/arch/arm/mm/proc-arm920.S index 22bf8dde4f84..7a14bd4414c9 100644 --- a/arch/arm/mm/proc-arm920.S +++ b/arch/arm/mm/proc-arm920.S | |||
@@ -448,7 +448,7 @@ arm920_crval: | |||
448 | 448 | ||
449 | .align | 449 | .align |
450 | 450 | ||
451 | .section ".proc.info.init", #alloc, #execinstr | 451 | .section ".proc.info.init", #alloc |
452 | 452 | ||
453 | .type __arm920_proc_info,#object | 453 | .type __arm920_proc_info,#object |
454 | __arm920_proc_info: | 454 | __arm920_proc_info: |
@@ -464,7 +464,7 @@ __arm920_proc_info: | |||
464 | PMD_BIT4 | \ | 464 | PMD_BIT4 | \ |
465 | PMD_SECT_AP_WRITE | \ | 465 | PMD_SECT_AP_WRITE | \ |
466 | PMD_SECT_AP_READ | 466 | PMD_SECT_AP_READ |
467 | b __arm920_setup | 467 | initfn __arm920_setup, __arm920_proc_info |
468 | .long cpu_arch_name | 468 | .long cpu_arch_name |
469 | .long cpu_elf_name | 469 | .long cpu_elf_name |
470 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | 470 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB |
diff --git a/arch/arm/mm/proc-arm922.S b/arch/arm/mm/proc-arm922.S index 0c6d5ac5a6d4..edccfcdcd551 100644 --- a/arch/arm/mm/proc-arm922.S +++ b/arch/arm/mm/proc-arm922.S | |||
@@ -426,7 +426,7 @@ arm922_crval: | |||
426 | 426 | ||
427 | .align | 427 | .align |
428 | 428 | ||
429 | .section ".proc.info.init", #alloc, #execinstr | 429 | .section ".proc.info.init", #alloc |
430 | 430 | ||
431 | .type __arm922_proc_info,#object | 431 | .type __arm922_proc_info,#object |
432 | __arm922_proc_info: | 432 | __arm922_proc_info: |
@@ -442,7 +442,7 @@ __arm922_proc_info: | |||
442 | PMD_BIT4 | \ | 442 | PMD_BIT4 | \ |
443 | PMD_SECT_AP_WRITE | \ | 443 | PMD_SECT_AP_WRITE | \ |
444 | PMD_SECT_AP_READ | 444 | PMD_SECT_AP_READ |
445 | b __arm922_setup | 445 | initfn __arm922_setup, __arm922_proc_info |
446 | .long cpu_arch_name | 446 | .long cpu_arch_name |
447 | .long cpu_elf_name | 447 | .long cpu_elf_name |
448 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | 448 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB |
diff --git a/arch/arm/mm/proc-arm925.S b/arch/arm/mm/proc-arm925.S index c32d073282ea..ede8c54ab4aa 100644 --- a/arch/arm/mm/proc-arm925.S +++ b/arch/arm/mm/proc-arm925.S | |||
@@ -494,7 +494,7 @@ arm925_crval: | |||
494 | 494 | ||
495 | .align | 495 | .align |
496 | 496 | ||
497 | .section ".proc.info.init", #alloc, #execinstr | 497 | .section ".proc.info.init", #alloc |
498 | 498 | ||
499 | .macro arm925_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache | 499 | .macro arm925_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache |
500 | .type __\name\()_proc_info,#object | 500 | .type __\name\()_proc_info,#object |
@@ -510,7 +510,7 @@ __\name\()_proc_info: | |||
510 | PMD_BIT4 | \ | 510 | PMD_BIT4 | \ |
511 | PMD_SECT_AP_WRITE | \ | 511 | PMD_SECT_AP_WRITE | \ |
512 | PMD_SECT_AP_READ | 512 | PMD_SECT_AP_READ |
513 | b __arm925_setup | 513 | initfn __arm925_setup, __\name\()_proc_info |
514 | .long cpu_arch_name | 514 | .long cpu_arch_name |
515 | .long cpu_elf_name | 515 | .long cpu_elf_name |
516 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | 516 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB |
diff --git a/arch/arm/mm/proc-arm926.S b/arch/arm/mm/proc-arm926.S index 252b2503038d..fb827c633693 100644 --- a/arch/arm/mm/proc-arm926.S +++ b/arch/arm/mm/proc-arm926.S | |||
@@ -474,7 +474,7 @@ arm926_crval: | |||
474 | 474 | ||
475 | .align | 475 | .align |
476 | 476 | ||
477 | .section ".proc.info.init", #alloc, #execinstr | 477 | .section ".proc.info.init", #alloc |
478 | 478 | ||
479 | .type __arm926_proc_info,#object | 479 | .type __arm926_proc_info,#object |
480 | __arm926_proc_info: | 480 | __arm926_proc_info: |
@@ -490,7 +490,7 @@ __arm926_proc_info: | |||
490 | PMD_BIT4 | \ | 490 | PMD_BIT4 | \ |
491 | PMD_SECT_AP_WRITE | \ | 491 | PMD_SECT_AP_WRITE | \ |
492 | PMD_SECT_AP_READ | 492 | PMD_SECT_AP_READ |
493 | b __arm926_setup | 493 | initfn __arm926_setup, __arm926_proc_info |
494 | .long cpu_arch_name | 494 | .long cpu_arch_name |
495 | .long cpu_elf_name | 495 | .long cpu_elf_name |
496 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_JAVA | 496 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP|HWCAP_JAVA |
diff --git a/arch/arm/mm/proc-arm940.S b/arch/arm/mm/proc-arm940.S index e5212d489377..0a0b7a9167b6 100644 --- a/arch/arm/mm/proc-arm940.S +++ b/arch/arm/mm/proc-arm940.S | |||
@@ -354,14 +354,14 @@ __arm940_setup: | |||
354 | 354 | ||
355 | .align | 355 | .align |
356 | 356 | ||
357 | .section ".proc.info.init", #alloc, #execinstr | 357 | .section ".proc.info.init", #alloc |
358 | 358 | ||
359 | .type __arm940_proc_info,#object | 359 | .type __arm940_proc_info,#object |
360 | __arm940_proc_info: | 360 | __arm940_proc_info: |
361 | .long 0x41009400 | 361 | .long 0x41009400 |
362 | .long 0xff00fff0 | 362 | .long 0xff00fff0 |
363 | .long 0 | 363 | .long 0 |
364 | b __arm940_setup | 364 | initfn __arm940_setup, __arm940_proc_info |
365 | .long cpu_arch_name | 365 | .long cpu_arch_name |
366 | .long cpu_elf_name | 366 | .long cpu_elf_name |
367 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | 367 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB |
diff --git a/arch/arm/mm/proc-arm946.S b/arch/arm/mm/proc-arm946.S index b3dd9b2d0b8e..c85b40d2117e 100644 --- a/arch/arm/mm/proc-arm946.S +++ b/arch/arm/mm/proc-arm946.S | |||
@@ -409,14 +409,14 @@ __arm946_setup: | |||
409 | 409 | ||
410 | .align | 410 | .align |
411 | 411 | ||
412 | .section ".proc.info.init", #alloc, #execinstr | 412 | .section ".proc.info.init", #alloc |
413 | .type __arm946_proc_info,#object | 413 | .type __arm946_proc_info,#object |
414 | __arm946_proc_info: | 414 | __arm946_proc_info: |
415 | .long 0x41009460 | 415 | .long 0x41009460 |
416 | .long 0xff00fff0 | 416 | .long 0xff00fff0 |
417 | .long 0 | 417 | .long 0 |
418 | .long 0 | 418 | .long 0 |
419 | b __arm946_setup | 419 | initfn __arm946_setup, __arm946_proc_info |
420 | .long cpu_arch_name | 420 | .long cpu_arch_name |
421 | .long cpu_elf_name | 421 | .long cpu_elf_name |
422 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | 422 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB |
diff --git a/arch/arm/mm/proc-arm9tdmi.S b/arch/arm/mm/proc-arm9tdmi.S index 8227322bbb8f..7fac8c612134 100644 --- a/arch/arm/mm/proc-arm9tdmi.S +++ b/arch/arm/mm/proc-arm9tdmi.S | |||
@@ -70,7 +70,7 @@ __arm9tdmi_setup: | |||
70 | 70 | ||
71 | .align | 71 | .align |
72 | 72 | ||
73 | .section ".proc.info.init", #alloc, #execinstr | 73 | .section ".proc.info.init", #alloc |
74 | 74 | ||
75 | .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req | 75 | .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req |
76 | .type __\name\()_proc_info, #object | 76 | .type __\name\()_proc_info, #object |
@@ -79,7 +79,7 @@ __\name\()_proc_info: | |||
79 | .long \cpu_mask | 79 | .long \cpu_mask |
80 | .long 0 | 80 | .long 0 |
81 | .long 0 | 81 | .long 0 |
82 | b __arm9tdmi_setup | 82 | initfn __arm9tdmi_setup, __\name\()_proc_info |
83 | .long cpu_arch_name | 83 | .long cpu_arch_name |
84 | .long cpu_elf_name | 84 | .long cpu_elf_name |
85 | .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT | 85 | .long HWCAP_SWP | HWCAP_THUMB | HWCAP_26BIT |
diff --git a/arch/arm/mm/proc-fa526.S b/arch/arm/mm/proc-fa526.S index c494886892ba..4001b73af4ee 100644 --- a/arch/arm/mm/proc-fa526.S +++ b/arch/arm/mm/proc-fa526.S | |||
@@ -190,7 +190,7 @@ fa526_cr1_set: | |||
190 | 190 | ||
191 | .align | 191 | .align |
192 | 192 | ||
193 | .section ".proc.info.init", #alloc, #execinstr | 193 | .section ".proc.info.init", #alloc |
194 | 194 | ||
195 | .type __fa526_proc_info,#object | 195 | .type __fa526_proc_info,#object |
196 | __fa526_proc_info: | 196 | __fa526_proc_info: |
@@ -206,7 +206,7 @@ __fa526_proc_info: | |||
206 | PMD_BIT4 | \ | 206 | PMD_BIT4 | \ |
207 | PMD_SECT_AP_WRITE | \ | 207 | PMD_SECT_AP_WRITE | \ |
208 | PMD_SECT_AP_READ | 208 | PMD_SECT_AP_READ |
209 | b __fa526_setup | 209 | initfn __fa526_setup, __fa526_proc_info |
210 | .long cpu_arch_name | 210 | .long cpu_arch_name |
211 | .long cpu_elf_name | 211 | .long cpu_elf_name |
212 | .long HWCAP_SWP | HWCAP_HALF | 212 | .long HWCAP_SWP | HWCAP_HALF |
diff --git a/arch/arm/mm/proc-feroceon.S b/arch/arm/mm/proc-feroceon.S index 03a1b75f2e16..e494d6d6acbe 100644 --- a/arch/arm/mm/proc-feroceon.S +++ b/arch/arm/mm/proc-feroceon.S | |||
@@ -584,7 +584,7 @@ feroceon_crval: | |||
584 | 584 | ||
585 | .align | 585 | .align |
586 | 586 | ||
587 | .section ".proc.info.init", #alloc, #execinstr | 587 | .section ".proc.info.init", #alloc |
588 | 588 | ||
589 | .macro feroceon_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache:req | 589 | .macro feroceon_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache:req |
590 | .type __\name\()_proc_info,#object | 590 | .type __\name\()_proc_info,#object |
@@ -601,7 +601,8 @@ __\name\()_proc_info: | |||
601 | PMD_BIT4 | \ | 601 | PMD_BIT4 | \ |
602 | PMD_SECT_AP_WRITE | \ | 602 | PMD_SECT_AP_WRITE | \ |
603 | PMD_SECT_AP_READ | 603 | PMD_SECT_AP_READ |
604 | b __feroceon_setup | 604 | initfn __feroceon_setup, __\name\()_proc_info |
605 | .long __feroceon_setup | ||
605 | .long cpu_arch_name | 606 | .long cpu_arch_name |
606 | .long cpu_elf_name | 607 | .long cpu_elf_name |
607 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP | 608 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP |
diff --git a/arch/arm/mm/proc-macros.S b/arch/arm/mm/proc-macros.S index 082b9f2f7e90..0f13b5f9281e 100644 --- a/arch/arm/mm/proc-macros.S +++ b/arch/arm/mm/proc-macros.S | |||
@@ -331,3 +331,7 @@ ENTRY(\name\()_tlb_fns) | |||
331 | .globl \x | 331 | .globl \x |
332 | .equ \x, \y | 332 | .equ \x, \y |
333 | .endm | 333 | .endm |
334 | |||
335 | .macro initfn, func, base | ||
336 | .long \func - \base | ||
337 | .endm | ||
diff --git a/arch/arm/mm/proc-mohawk.S b/arch/arm/mm/proc-mohawk.S index 53d393455f13..d65edf717bf7 100644 --- a/arch/arm/mm/proc-mohawk.S +++ b/arch/arm/mm/proc-mohawk.S | |||
@@ -427,7 +427,7 @@ mohawk_crval: | |||
427 | 427 | ||
428 | .align | 428 | .align |
429 | 429 | ||
430 | .section ".proc.info.init", #alloc, #execinstr | 430 | .section ".proc.info.init", #alloc |
431 | 431 | ||
432 | .type __88sv331x_proc_info,#object | 432 | .type __88sv331x_proc_info,#object |
433 | __88sv331x_proc_info: | 433 | __88sv331x_proc_info: |
@@ -443,7 +443,7 @@ __88sv331x_proc_info: | |||
443 | PMD_BIT4 | \ | 443 | PMD_BIT4 | \ |
444 | PMD_SECT_AP_WRITE | \ | 444 | PMD_SECT_AP_WRITE | \ |
445 | PMD_SECT_AP_READ | 445 | PMD_SECT_AP_READ |
446 | b __mohawk_setup | 446 | initfn __mohawk_setup, __88sv331x_proc_info |
447 | .long cpu_arch_name | 447 | .long cpu_arch_name |
448 | .long cpu_elf_name | 448 | .long cpu_elf_name |
449 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP | 449 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP |
diff --git a/arch/arm/mm/proc-sa110.S b/arch/arm/mm/proc-sa110.S index 8008a0461cf5..ee2ce496239f 100644 --- a/arch/arm/mm/proc-sa110.S +++ b/arch/arm/mm/proc-sa110.S | |||
@@ -199,7 +199,7 @@ sa110_crval: | |||
199 | 199 | ||
200 | .align | 200 | .align |
201 | 201 | ||
202 | .section ".proc.info.init", #alloc, #execinstr | 202 | .section ".proc.info.init", #alloc |
203 | 203 | ||
204 | .type __sa110_proc_info,#object | 204 | .type __sa110_proc_info,#object |
205 | __sa110_proc_info: | 205 | __sa110_proc_info: |
@@ -213,7 +213,7 @@ __sa110_proc_info: | |||
213 | .long PMD_TYPE_SECT | \ | 213 | .long PMD_TYPE_SECT | \ |
214 | PMD_SECT_AP_WRITE | \ | 214 | PMD_SECT_AP_WRITE | \ |
215 | PMD_SECT_AP_READ | 215 | PMD_SECT_AP_READ |
216 | b __sa110_setup | 216 | initfn __sa110_setup, __sa110_proc_info |
217 | .long cpu_arch_name | 217 | .long cpu_arch_name |
218 | .long cpu_elf_name | 218 | .long cpu_elf_name |
219 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT | 219 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT |
diff --git a/arch/arm/mm/proc-sa1100.S b/arch/arm/mm/proc-sa1100.S index 89f97ac648a9..222d5836f666 100644 --- a/arch/arm/mm/proc-sa1100.S +++ b/arch/arm/mm/proc-sa1100.S | |||
@@ -242,7 +242,7 @@ sa1100_crval: | |||
242 | 242 | ||
243 | .align | 243 | .align |
244 | 244 | ||
245 | .section ".proc.info.init", #alloc, #execinstr | 245 | .section ".proc.info.init", #alloc |
246 | 246 | ||
247 | .macro sa1100_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req | 247 | .macro sa1100_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req |
248 | .type __\name\()_proc_info,#object | 248 | .type __\name\()_proc_info,#object |
@@ -257,7 +257,7 @@ __\name\()_proc_info: | |||
257 | .long PMD_TYPE_SECT | \ | 257 | .long PMD_TYPE_SECT | \ |
258 | PMD_SECT_AP_WRITE | \ | 258 | PMD_SECT_AP_WRITE | \ |
259 | PMD_SECT_AP_READ | 259 | PMD_SECT_AP_READ |
260 | b __sa1100_setup | 260 | initfn __sa1100_setup, __\name\()_proc_info |
261 | .long cpu_arch_name | 261 | .long cpu_arch_name |
262 | .long cpu_elf_name | 262 | .long cpu_elf_name |
263 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT | 263 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_26BIT | HWCAP_FAST_MULT |
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S index d0390f4b3f18..06d890a2342b 100644 --- a/arch/arm/mm/proc-v6.S +++ b/arch/arm/mm/proc-v6.S | |||
@@ -264,7 +264,7 @@ v6_crval: | |||
264 | string cpu_elf_name, "v6" | 264 | string cpu_elf_name, "v6" |
265 | .align | 265 | .align |
266 | 266 | ||
267 | .section ".proc.info.init", #alloc, #execinstr | 267 | .section ".proc.info.init", #alloc |
268 | 268 | ||
269 | /* | 269 | /* |
270 | * Match any ARMv6 processor core. | 270 | * Match any ARMv6 processor core. |
@@ -287,7 +287,7 @@ __v6_proc_info: | |||
287 | PMD_SECT_XN | \ | 287 | PMD_SECT_XN | \ |
288 | PMD_SECT_AP_WRITE | \ | 288 | PMD_SECT_AP_WRITE | \ |
289 | PMD_SECT_AP_READ | 289 | PMD_SECT_AP_READ |
290 | b __v6_setup | 290 | initfn __v6_setup, __v6_proc_info |
291 | .long cpu_arch_name | 291 | .long cpu_arch_name |
292 | .long cpu_elf_name | 292 | .long cpu_elf_name |
293 | /* See also feat_v6_fixup() for HWCAP_TLS */ | 293 | /* See also feat_v6_fixup() for HWCAP_TLS */ |
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 8b4ee5e81c14..6bdaa4cc1784 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -462,19 +462,19 @@ __v7_setup_stack: | |||
462 | string cpu_elf_name, "v7" | 462 | string cpu_elf_name, "v7" |
463 | .align | 463 | .align |
464 | 464 | ||
465 | .section ".proc.info.init", #alloc, #execinstr | 465 | .section ".proc.info.init", #alloc |
466 | 466 | ||
467 | /* | 467 | /* |
468 | * Standard v7 proc info content | 468 | * Standard v7 proc info content |
469 | */ | 469 | */ |
470 | .macro __v7_proc initfunc, mm_mmuflags = 0, io_mmuflags = 0, hwcaps = 0, proc_fns = v7_processor_functions | 470 | .macro __v7_proc name, initfunc, mm_mmuflags = 0, io_mmuflags = 0, hwcaps = 0, proc_fns = v7_processor_functions |
471 | ALT_SMP(.long PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | \ | 471 | ALT_SMP(.long PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | \ |
472 | PMD_SECT_AF | PMD_FLAGS_SMP | \mm_mmuflags) | 472 | PMD_SECT_AF | PMD_FLAGS_SMP | \mm_mmuflags) |
473 | ALT_UP(.long PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | \ | 473 | ALT_UP(.long PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | \ |
474 | PMD_SECT_AF | PMD_FLAGS_UP | \mm_mmuflags) | 474 | PMD_SECT_AF | PMD_FLAGS_UP | \mm_mmuflags) |
475 | .long PMD_TYPE_SECT | PMD_SECT_AP_WRITE | \ | 475 | .long PMD_TYPE_SECT | PMD_SECT_AP_WRITE | \ |
476 | PMD_SECT_AP_READ | PMD_SECT_AF | \io_mmuflags | 476 | PMD_SECT_AP_READ | PMD_SECT_AF | \io_mmuflags |
477 | W(b) \initfunc | 477 | initfn \initfunc, \name |
478 | .long cpu_arch_name | 478 | .long cpu_arch_name |
479 | .long cpu_elf_name | 479 | .long cpu_elf_name |
480 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_FAST_MULT | \ | 480 | .long HWCAP_SWP | HWCAP_HALF | HWCAP_THUMB | HWCAP_FAST_MULT | \ |
@@ -494,7 +494,7 @@ __v7_setup_stack: | |||
494 | __v7_ca5mp_proc_info: | 494 | __v7_ca5mp_proc_info: |
495 | .long 0x410fc050 | 495 | .long 0x410fc050 |
496 | .long 0xff0ffff0 | 496 | .long 0xff0ffff0 |
497 | __v7_proc __v7_ca5mp_setup | 497 | __v7_proc __v7_ca5mp_proc_info, __v7_ca5mp_setup |
498 | .size __v7_ca5mp_proc_info, . - __v7_ca5mp_proc_info | 498 | .size __v7_ca5mp_proc_info, . - __v7_ca5mp_proc_info |
499 | 499 | ||
500 | /* | 500 | /* |
@@ -504,7 +504,7 @@ __v7_ca5mp_proc_info: | |||
504 | __v7_ca9mp_proc_info: | 504 | __v7_ca9mp_proc_info: |
505 | .long 0x410fc090 | 505 | .long 0x410fc090 |
506 | .long 0xff0ffff0 | 506 | .long 0xff0ffff0 |
507 | __v7_proc __v7_ca9mp_setup, proc_fns = ca9mp_processor_functions | 507 | __v7_proc __v7_ca9mp_proc_info, __v7_ca9mp_setup, proc_fns = ca9mp_processor_functions |
508 | .size __v7_ca9mp_proc_info, . - __v7_ca9mp_proc_info | 508 | .size __v7_ca9mp_proc_info, . - __v7_ca9mp_proc_info |
509 | 509 | ||
510 | #endif /* CONFIG_ARM_LPAE */ | 510 | #endif /* CONFIG_ARM_LPAE */ |
@@ -517,7 +517,7 @@ __v7_ca9mp_proc_info: | |||
517 | __v7_pj4b_proc_info: | 517 | __v7_pj4b_proc_info: |
518 | .long 0x560f5800 | 518 | .long 0x560f5800 |
519 | .long 0xff0fff00 | 519 | .long 0xff0fff00 |
520 | __v7_proc __v7_pj4b_setup, proc_fns = pj4b_processor_functions | 520 | __v7_proc __v7_pj4b_proc_info, __v7_pj4b_setup, proc_fns = pj4b_processor_functions |
521 | .size __v7_pj4b_proc_info, . - __v7_pj4b_proc_info | 521 | .size __v7_pj4b_proc_info, . - __v7_pj4b_proc_info |
522 | #endif | 522 | #endif |
523 | 523 | ||
@@ -528,7 +528,7 @@ __v7_pj4b_proc_info: | |||
528 | __v7_cr7mp_proc_info: | 528 | __v7_cr7mp_proc_info: |
529 | .long 0x410fc170 | 529 | .long 0x410fc170 |
530 | .long 0xff0ffff0 | 530 | .long 0xff0ffff0 |
531 | __v7_proc __v7_cr7mp_setup | 531 | __v7_proc __v7_cr7mp_proc_info, __v7_cr7mp_setup |
532 | .size __v7_cr7mp_proc_info, . - __v7_cr7mp_proc_info | 532 | .size __v7_cr7mp_proc_info, . - __v7_cr7mp_proc_info |
533 | 533 | ||
534 | /* | 534 | /* |
@@ -538,7 +538,7 @@ __v7_cr7mp_proc_info: | |||
538 | __v7_ca7mp_proc_info: | 538 | __v7_ca7mp_proc_info: |
539 | .long 0x410fc070 | 539 | .long 0x410fc070 |
540 | .long 0xff0ffff0 | 540 | .long 0xff0ffff0 |
541 | __v7_proc __v7_ca7mp_setup | 541 | __v7_proc __v7_ca7mp_proc_info, __v7_ca7mp_setup |
542 | .size __v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info | 542 | .size __v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info |
543 | 543 | ||
544 | /* | 544 | /* |
@@ -548,7 +548,7 @@ __v7_ca7mp_proc_info: | |||
548 | __v7_ca12mp_proc_info: | 548 | __v7_ca12mp_proc_info: |
549 | .long 0x410fc0d0 | 549 | .long 0x410fc0d0 |
550 | .long 0xff0ffff0 | 550 | .long 0xff0ffff0 |
551 | __v7_proc __v7_ca12mp_setup | 551 | __v7_proc __v7_ca12mp_proc_info, __v7_ca12mp_setup |
552 | .size __v7_ca12mp_proc_info, . - __v7_ca12mp_proc_info | 552 | .size __v7_ca12mp_proc_info, . - __v7_ca12mp_proc_info |
553 | 553 | ||
554 | /* | 554 | /* |
@@ -558,7 +558,7 @@ __v7_ca12mp_proc_info: | |||
558 | __v7_ca15mp_proc_info: | 558 | __v7_ca15mp_proc_info: |
559 | .long 0x410fc0f0 | 559 | .long 0x410fc0f0 |
560 | .long 0xff0ffff0 | 560 | .long 0xff0ffff0 |
561 | __v7_proc __v7_ca15mp_setup | 561 | __v7_proc __v7_ca15mp_proc_info, __v7_ca15mp_setup |
562 | .size __v7_ca15mp_proc_info, . - __v7_ca15mp_proc_info | 562 | .size __v7_ca15mp_proc_info, . - __v7_ca15mp_proc_info |
563 | 563 | ||
564 | /* | 564 | /* |
@@ -568,7 +568,7 @@ __v7_ca15mp_proc_info: | |||
568 | __v7_b15mp_proc_info: | 568 | __v7_b15mp_proc_info: |
569 | .long 0x420f00f0 | 569 | .long 0x420f00f0 |
570 | .long 0xff0ffff0 | 570 | .long 0xff0ffff0 |
571 | __v7_proc __v7_b15mp_setup | 571 | __v7_proc __v7_b15mp_proc_info, __v7_b15mp_setup |
572 | .size __v7_b15mp_proc_info, . - __v7_b15mp_proc_info | 572 | .size __v7_b15mp_proc_info, . - __v7_b15mp_proc_info |
573 | 573 | ||
574 | /* | 574 | /* |
@@ -578,7 +578,7 @@ __v7_b15mp_proc_info: | |||
578 | __v7_ca17mp_proc_info: | 578 | __v7_ca17mp_proc_info: |
579 | .long 0x410fc0e0 | 579 | .long 0x410fc0e0 |
580 | .long 0xff0ffff0 | 580 | .long 0xff0ffff0 |
581 | __v7_proc __v7_ca17mp_setup | 581 | __v7_proc __v7_ca17mp_proc_info, __v7_ca17mp_setup |
582 | .size __v7_ca17mp_proc_info, . - __v7_ca17mp_proc_info | 582 | .size __v7_ca17mp_proc_info, . - __v7_ca17mp_proc_info |
583 | 583 | ||
584 | /* | 584 | /* |
@@ -594,7 +594,7 @@ __krait_proc_info: | |||
594 | * do support them. They also don't indicate support for fused multiply | 594 | * do support them. They also don't indicate support for fused multiply |
595 | * instructions even though they actually do support them. | 595 | * instructions even though they actually do support them. |
596 | */ | 596 | */ |
597 | __v7_proc __v7_setup, hwcaps = HWCAP_IDIV | HWCAP_VFPv4 | 597 | __v7_proc __krait_proc_info, __v7_setup, hwcaps = HWCAP_IDIV | HWCAP_VFPv4 |
598 | .size __krait_proc_info, . - __krait_proc_info | 598 | .size __krait_proc_info, . - __krait_proc_info |
599 | 599 | ||
600 | /* | 600 | /* |
@@ -604,5 +604,5 @@ __krait_proc_info: | |||
604 | __v7_proc_info: | 604 | __v7_proc_info: |
605 | .long 0x000f0000 @ Required ID value | 605 | .long 0x000f0000 @ Required ID value |
606 | .long 0x000f0000 @ Mask for ID | 606 | .long 0x000f0000 @ Mask for ID |
607 | __v7_proc __v7_setup | 607 | __v7_proc __v7_proc_info, __v7_setup |
608 | .size __v7_proc_info, . - __v7_proc_info | 608 | .size __v7_proc_info, . - __v7_proc_info |
diff --git a/arch/arm/mm/proc-v7m.S b/arch/arm/mm/proc-v7m.S index d1e68b553d3b..e08e1f2bab76 100644 --- a/arch/arm/mm/proc-v7m.S +++ b/arch/arm/mm/proc-v7m.S | |||
@@ -135,7 +135,7 @@ __v7m_setup_stack_top: | |||
135 | string cpu_elf_name "v7m" | 135 | string cpu_elf_name "v7m" |
136 | string cpu_v7m_name "ARMv7-M" | 136 | string cpu_v7m_name "ARMv7-M" |
137 | 137 | ||
138 | .section ".proc.info.init", #alloc, #execinstr | 138 | .section ".proc.info.init", #alloc |
139 | 139 | ||
140 | /* | 140 | /* |
141 | * Match any ARMv7-M processor core. | 141 | * Match any ARMv7-M processor core. |
@@ -146,7 +146,7 @@ __v7m_proc_info: | |||
146 | .long 0x000f0000 @ Mask for ID | 146 | .long 0x000f0000 @ Mask for ID |
147 | .long 0 @ proc_info_list.__cpu_mm_mmu_flags | 147 | .long 0 @ proc_info_list.__cpu_mm_mmu_flags |
148 | .long 0 @ proc_info_list.__cpu_io_mmu_flags | 148 | .long 0 @ proc_info_list.__cpu_io_mmu_flags |
149 | b __v7m_setup @ proc_info_list.__cpu_flush | 149 | initfn __v7m_setup, __v7m_proc_info @ proc_info_list.__cpu_flush |
150 | .long cpu_arch_name | 150 | .long cpu_arch_name |
151 | .long cpu_elf_name | 151 | .long cpu_elf_name |
152 | .long HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT | 152 | .long HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT |
diff --git a/arch/arm/mm/proc-xsc3.S b/arch/arm/mm/proc-xsc3.S index f8acdfece036..293dcc2c441f 100644 --- a/arch/arm/mm/proc-xsc3.S +++ b/arch/arm/mm/proc-xsc3.S | |||
@@ -499,7 +499,7 @@ xsc3_crval: | |||
499 | 499 | ||
500 | .align | 500 | .align |
501 | 501 | ||
502 | .section ".proc.info.init", #alloc, #execinstr | 502 | .section ".proc.info.init", #alloc |
503 | 503 | ||
504 | .macro xsc3_proc_info name:req, cpu_val:req, cpu_mask:req | 504 | .macro xsc3_proc_info name:req, cpu_val:req, cpu_mask:req |
505 | .type __\name\()_proc_info,#object | 505 | .type __\name\()_proc_info,#object |
@@ -514,7 +514,7 @@ __\name\()_proc_info: | |||
514 | .long PMD_TYPE_SECT | \ | 514 | .long PMD_TYPE_SECT | \ |
515 | PMD_SECT_AP_WRITE | \ | 515 | PMD_SECT_AP_WRITE | \ |
516 | PMD_SECT_AP_READ | 516 | PMD_SECT_AP_READ |
517 | b __xsc3_setup | 517 | initfn __xsc3_setup, __\name\()_proc_info |
518 | .long cpu_arch_name | 518 | .long cpu_arch_name |
519 | .long cpu_elf_name | 519 | .long cpu_elf_name |
520 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP | 520 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP |
diff --git a/arch/arm/mm/proc-xscale.S b/arch/arm/mm/proc-xscale.S index afa2b3c4df4a..b6bbfdb6dfdc 100644 --- a/arch/arm/mm/proc-xscale.S +++ b/arch/arm/mm/proc-xscale.S | |||
@@ -612,7 +612,7 @@ xscale_crval: | |||
612 | 612 | ||
613 | .align | 613 | .align |
614 | 614 | ||
615 | .section ".proc.info.init", #alloc, #execinstr | 615 | .section ".proc.info.init", #alloc |
616 | 616 | ||
617 | .macro xscale_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache | 617 | .macro xscale_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache |
618 | .type __\name\()_proc_info,#object | 618 | .type __\name\()_proc_info,#object |
@@ -627,7 +627,7 @@ __\name\()_proc_info: | |||
627 | .long PMD_TYPE_SECT | \ | 627 | .long PMD_TYPE_SECT | \ |
628 | PMD_SECT_AP_WRITE | \ | 628 | PMD_SECT_AP_WRITE | \ |
629 | PMD_SECT_AP_READ | 629 | PMD_SECT_AP_READ |
630 | b __xscale_setup | 630 | initfn __xscale_setup, __\name\()_proc_info |
631 | .long cpu_arch_name | 631 | .long cpu_arch_name |
632 | .long cpu_elf_name | 632 | .long cpu_elf_name |
633 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP | 633 | .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP |