Home | History | Annotate | Download | only in ld-arm
      1 	.syntax unified
      2 	.cpu cortex-a8
      3 	.text
      4 
      5 	@ expansion 32 bytes
      6         .macro bw1
      7         add.w r0, r1, r2
      8         blx.w armfn
      9         add.w r0, r1, r2
     10         blx.w armfn
     11         add.w r0, r1, r2
     12         blx.w armfn
     13         add.w r0, r1, r2
     14         blx.w armfn
     15         .endm
     16 
     17         @ expansion 128 bytes
     18         .macro bw2
     19         bw1
     20         bw1
     21         bw1
     22         bw1
     23         .endm
     24 
     25 	.arm
     26         .align  2
     27 armfn:
     28 	mov	r2, r3, asl r4
     29 	bx	lr
     30 
     31         .global _start
     32 
     33 	.thumb
     34         .thumb_func
     35 	.align 3
     36         .type   _start, %function
     37 _start:
     38         nop
     39 
     40 	@ Trigger Cortex-A8 erratum workaround with blx instructions.
     41         bw2
     42         bw2
     43 
     44         bx      lr
     45