1#
2#
3#/* Define the Cortex-M7 vector area.  */
4#
5
6    .section    ".reset", .text
7    .globl  __vectors
8__vectors:
9    .data.w __ghsend_stack                      # Reset and system stack ptr
10    .data.w __Reset_Handler                     # Reset goes to Reset Handler
11    .data.w __tx_NMIHandler                     # NMI
12    .data.w __tx_BadHandler                     # HardFault
13    .data.w 0                                   # MemManage
14    .data.w 0                                   # BusFault
15    .data.w 0                                   # UsageFault
16    .data.w 0                                   # 7
17    .data.w 0                                   # 8
18    .data.w 0                                   # 9
19    .data.w 0                                   # 10
20    .data.w __tx_SVCallHandler                  # SVCall
21    .data.w __tx_DBGHandler                     # Monitor
22    .data.w 0                                   # 13
23    .data.w __tx_PendSVHandler                  # PendSV
24    .data.w __tx_SysTickHandler                 # SysTick
25    .data.w __tx_IntHandler                     # Int 0
26    .data.w __tx_IntHandler                     # Int 1
27    .data.w __tx_IntHandler                     # Int 2
28    .data.w __tx_IntHandler                     # Int 3
29    .type __vectors,$object
30    .size __vectors,.-__vectors
31#
32#
33    .globl  __Reset_Handler
34__Reset_Handler:
35    CPSID   i                                   # Disable interrupts
36    LDR     r0,=_start                          # Build address of GHS startup code
37    BX      r0                                  # Enter GHS startup
38
39    .type __Reset_Handler,$function
40    .size __Reset_Handler,.-__Reset_Handler
41