Rev | Line | |
---|
[3] | 1 | # 1 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/SEGGER_THUMB_Startup.s" |
---|
| 2 | # 1 "<built-in>" |
---|
| 3 | # 1 "<command-line>" |
---|
| 4 | # 1 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/SEGGER_THUMB_Startup.s" |
---|
| 5 | # 62 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/SEGGER_THUMB_Startup.s" |
---|
| 6 | .syntax unified |
---|
| 7 | # 88 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/SEGGER_THUMB_Startup.s" |
---|
| 8 | .macro MARK_FUNC Name |
---|
| 9 | .global \Name |
---|
| 10 | .thumb_func |
---|
| 11 | .code 16 |
---|
| 12 | \Name: |
---|
| 13 | .endm |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | .macro START_FUNC Name |
---|
| 19 | .section .init.\Name, "ax" |
---|
| 20 | .global \Name |
---|
| 21 | .balign 2 |
---|
| 22 | .thumb_func |
---|
| 23 | .code 16 |
---|
| 24 | \Name: |
---|
| 25 | .endm |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | .macro WEAK_FUNC Name |
---|
| 31 | .section .init.\Name, "ax", %progbits |
---|
| 32 | .global \Name |
---|
| 33 | .weak \Name |
---|
| 34 | .balign 2 |
---|
| 35 | .thumb_func |
---|
| 36 | .code 16 |
---|
| 37 | \Name: |
---|
| 38 | .endm |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | .macro END_FUNC name |
---|
| 44 | .size \name,.-\name |
---|
| 45 | .endm |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | .extern main |
---|
| 54 | # 163 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/SEGGER_THUMB_Startup.s" |
---|
| 55 | START_FUNC _start |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | ldr R4, =__SEGGER_init_table__ |
---|
| 63 | .L_start_RunInit: |
---|
| 64 | ldr R0, [R4] |
---|
| 65 | adds R4, R4, #4 |
---|
| 66 | blx R0 |
---|
| 67 | b .L_start_RunInit |
---|
| 68 | |
---|
| 69 | MARK_FUNC __SEGGER_init_done |
---|
| 70 | # 187 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/SEGGER_THUMB_Startup.s" |
---|
| 71 | bl main |
---|
| 72 | |
---|
| 73 | END_FUNC _start |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | MARK_FUNC exit |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | b . |
---|
| 84 | .size exit,.-exit |
---|
Note: See
TracBrowser
for help on using the repository browser.