Maintool / mbed-src-v4

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Wed Jul 01 08:15:11 2015 +0100
Revision:
577:15494b56c2f3
Parent:
targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/startup_MKL46Z4.s@377:95186f86029b
Synchronized with git revision 7766e75dd858812cd79aedb3080349715f55dd56

Full URL: https://github.com/mbedmicro/mbed/commit/7766e75dd858812cd79aedb3080349715f55dd56/

GCC asm updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 377:95186f86029b 1 /**************************************************
mbed_official 377:95186f86029b 2 *
mbed_official 377:95186f86029b 3 * Copyright 2010 IAR Systems. All rights reserved.
mbed_official 377:95186f86029b 4 *
mbed_official 377:95186f86029b 5 * $Revision: 16 $
mbed_official 377:95186f86029b 6 *
mbed_official 377:95186f86029b 7 **************************************************/
mbed_official 377:95186f86029b 8
mbed_official 377:95186f86029b 9 ;
mbed_official 377:95186f86029b 10 ; The modules in this file are included in the libraries, and may be replaced
mbed_official 377:95186f86029b 11 ; by any user-defined modules that define the PUBLIC symbol _program_start or
mbed_official 377:95186f86029b 12 ; a user defined start symbol.
mbed_official 377:95186f86029b 13 ; To override the cstartup defined in the library, simply add your modified
mbed_official 377:95186f86029b 14 ; version to the workbench project.
mbed_official 377:95186f86029b 15 ;
mbed_official 377:95186f86029b 16 ; The vector table is normally located at address 0.
mbed_official 377:95186f86029b 17 ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
mbed_official 377:95186f86029b 18 ; The name "__vector_table" has special meaning for C-SPY:
mbed_official 377:95186f86029b 19 ; it is where the SP start value is found, and the NVIC vector
mbed_official 377:95186f86029b 20 ; table register (VTOR) is initialized to this address if != 0.
mbed_official 377:95186f86029b 21 ;
mbed_official 377:95186f86029b 22 ; Cortex-M version
mbed_official 377:95186f86029b 23 ;
mbed_official 377:95186f86029b 24
mbed_official 377:95186f86029b 25 MODULE ?cstartup
mbed_official 377:95186f86029b 26
mbed_official 377:95186f86029b 27 ;; Forward declaration of sections.
mbed_official 377:95186f86029b 28 SECTION CSTACK:DATA:NOROOT(3)
mbed_official 377:95186f86029b 29
mbed_official 377:95186f86029b 30 SECTION .intvec:CODE:ROOT(2)
mbed_official 377:95186f86029b 31
mbed_official 377:95186f86029b 32 EXTERN __iar_program_start
mbed_official 377:95186f86029b 33 EXTERN SystemInit
mbed_official 377:95186f86029b 34 PUBLIC __vector_table
mbed_official 377:95186f86029b 35
mbed_official 377:95186f86029b 36 DATA
mbed_official 377:95186f86029b 37 __vector_table
mbed_official 377:95186f86029b 38 DCD sfe(CSTACK) ; Top of Stack
mbed_official 377:95186f86029b 39 DCD Reset_Handler ; Reset Handler
mbed_official 377:95186f86029b 40 DCD NMI_Handler ; NMI Handler
mbed_official 377:95186f86029b 41 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 377:95186f86029b 42 DCD 0 ; Reserved
mbed_official 377:95186f86029b 43 DCD 0 ; Reserved
mbed_official 377:95186f86029b 44 DCD 0 ; Reserved
mbed_official 377:95186f86029b 45 DCD 0 ; Reserved
mbed_official 377:95186f86029b 46 DCD 0 ; Reserved
mbed_official 377:95186f86029b 47 DCD 0 ; Reserved
mbed_official 377:95186f86029b 48 DCD 0 ; Reserved
mbed_official 377:95186f86029b 49 DCD SVC_Handler ; SVCall Handler
mbed_official 377:95186f86029b 50 DCD 0 ; Reserved
mbed_official 377:95186f86029b 51 DCD 0 ; Reserved
mbed_official 377:95186f86029b 52 DCD PendSV_Handler ; PendSV Handler
mbed_official 377:95186f86029b 53 DCD SysTick_Handler ; SysTick Handler
mbed_official 377:95186f86029b 54 ; External Interrupts
mbed_official 377:95186f86029b 55 DCD DMA0_IRQHandler ; DMA channel 0 transfer complete/error interrupt
mbed_official 377:95186f86029b 56 DCD DMA1_IRQHandler ; DMA channel 1 transfer complete/error interrupt
mbed_official 377:95186f86029b 57 DCD DMA2_IRQHandler ; DMA channel 2 transfer complete/error interrupt
mbed_official 377:95186f86029b 58 DCD DMA3_IRQHandler ; DMA channel 3 transfer complete/error interrupt
mbed_official 377:95186f86029b 59 DCD 0 ; Reserved
mbed_official 377:95186f86029b 60 DCD FTFA_IRQHandler ; FTFA command complete/read collision interrupt
mbed_official 377:95186f86029b 61 DCD LVD_LVW_IRQHandler ; Low Voltage Detect, Low Voltage Warning
mbed_official 377:95186f86029b 62 DCD LLW_IRQHandler ; Low Leakage Wakeup
mbed_official 377:95186f86029b 63 DCD I2C0_IRQHandler ; I2C0 interrupt
mbed_official 377:95186f86029b 64 DCD I2C1_IRQHandler ; I2C0 interrupt 25
mbed_official 377:95186f86029b 65 DCD SPI0_IRQHandler ; SPI0 interrupt
mbed_official 377:95186f86029b 66 DCD SPI1_IRQHandler ; SPI1 interrupt
mbed_official 377:95186f86029b 67 DCD UART0_IRQHandler ; UART0 status/error interrupt
mbed_official 377:95186f86029b 68 DCD UART1_IRQHandler ; UART1 status/error interrupt
mbed_official 377:95186f86029b 69 DCD UART2_IRQHandler ; UART2 status/error interrupt
mbed_official 377:95186f86029b 70 DCD ADC0_IRQHandler ; ADC0 interrupt
mbed_official 377:95186f86029b 71 DCD CMP0_IRQHandler ; CMP0 interrupt
mbed_official 377:95186f86029b 72 DCD TPM0_IRQHandler ; TPM0 fault, overflow and channels interrupt
mbed_official 377:95186f86029b 73 DCD TPM1_IRQHandler ; TPM1 fault, overflow and channels interrupt
mbed_official 377:95186f86029b 74 DCD TPM2_IRQHandler ; TPM2 fault, overflow and channels interrupt
mbed_official 377:95186f86029b 75 DCD RTC_IRQHandler ; RTC interrupt
mbed_official 377:95186f86029b 76 DCD RTC_Seconds_IRQHandler ; RTC seconds interrupt
mbed_official 377:95186f86029b 77 DCD PIT_IRQHandler ; PIT timer interrupt
mbed_official 377:95186f86029b 78 DCD I2S0_IRQHandler ; I2S0 transmit interrupt
mbed_official 377:95186f86029b 79 DCD USB0_IRQHandler ; USB0 interrupt
mbed_official 377:95186f86029b 80 DCD DAC0_IRQHandler ; DAC0 interrupt
mbed_official 377:95186f86029b 81 DCD TSI0_IRQHandler ; TSI0 interrupt
mbed_official 377:95186f86029b 82 DCD MCG_IRQHandler ; MCG interrupt
mbed_official 377:95186f86029b 83 DCD LPTimer_IRQHandler ; LPTimer interrupt
mbed_official 377:95186f86029b 84 DCD LCD_IRQHandler ; Segment LCD Interrupt
mbed_official 377:95186f86029b 85 DCD PORTA_IRQHandler ; Port A interrupt
mbed_official 377:95186f86029b 86 DCD PORTD_IRQHandler ; Port D interrupt
mbed_official 377:95186f86029b 87 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 377:95186f86029b 88 ;;Flash Configuration
mbed_official 377:95186f86029b 89 ;;16-byte flash configuration field that stores default protection settings (loaded on reset)
mbed_official 377:95186f86029b 90 ;;and security information that allows the MCU to restrict acces to the FTFL module.
mbed_official 377:95186f86029b 91
mbed_official 377:95186f86029b 92 BackDoorK0 EQU 0xFF
mbed_official 377:95186f86029b 93 BackDoorK1 EQU 0xFF
mbed_official 377:95186f86029b 94 BackDoorK2 EQU 0xFF
mbed_official 377:95186f86029b 95 BackDoorK3 EQU 0xFF
mbed_official 377:95186f86029b 96 BackDoorK4 EQU 0xFF
mbed_official 377:95186f86029b 97 BackDoorK5 EQU 0xFF
mbed_official 377:95186f86029b 98 BackDoorK6 EQU 0xFF
mbed_official 377:95186f86029b 99 BackDoorK7 EQU 0xFF
mbed_official 377:95186f86029b 100
mbed_official 377:95186f86029b 101 nFPROT0 EQU 0x00
mbed_official 377:95186f86029b 102 FPROT0 EQU nFPROT0^0xFF
mbed_official 377:95186f86029b 103
mbed_official 377:95186f86029b 104 nFPROT1 EQU 0x00
mbed_official 377:95186f86029b 105 FPROT1 EQU nFPROT1^0xFF
mbed_official 377:95186f86029b 106
mbed_official 377:95186f86029b 107 nFPROT2 EQU 0x00
mbed_official 377:95186f86029b 108 FPROT2 EQU nFPROT2^0xFF
mbed_official 377:95186f86029b 109
mbed_official 377:95186f86029b 110 nFPROT3 EQU 0x00
mbed_official 377:95186f86029b 111 FPROT3 EQU nFPROT3^0xFF
mbed_official 377:95186f86029b 112
mbed_official 377:95186f86029b 113 FOPT EQU 0xFF
mbed_official 377:95186f86029b 114
mbed_official 377:95186f86029b 115 FSEC EQU 0xFE
mbed_official 377:95186f86029b 116 SECTION FlashConfig:CONST:REORDER:ROOT(2)
mbed_official 377:95186f86029b 117 Config:
mbed_official 377:95186f86029b 118 DATA
mbed_official 377:95186f86029b 119 DCB BackDoorK0, BackDoorK1, BackDoorK2, BackDoorK3
mbed_official 377:95186f86029b 120 DCB BackDoorK4, BackDoorK5, BackDoorK6, BackDoorK7
mbed_official 377:95186f86029b 121 DCB FPROT0, FPROT1, FPROT2, FPROT3
mbed_official 377:95186f86029b 122 DCB FSEC, FOPT, 0xFF, 0xFF
mbed_official 377:95186f86029b 123 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 377:95186f86029b 124 ;;
mbed_official 377:95186f86029b 125 ;; Default interrupt handlers.
mbed_official 377:95186f86029b 126 ;;
mbed_official 377:95186f86029b 127 THUMB
mbed_official 377:95186f86029b 128 PUBWEAK Reset_Handler
mbed_official 377:95186f86029b 129 SECTION .text:CODE:NOROOT:REORDER(2)
mbed_official 377:95186f86029b 130 Reset_Handler
mbed_official 377:95186f86029b 131
mbed_official 377:95186f86029b 132 LDR R0, =SystemInit
mbed_official 377:95186f86029b 133 BLX R0
mbed_official 377:95186f86029b 134 LDR R0, =__iar_program_start
mbed_official 377:95186f86029b 135 BX R0
mbed_official 377:95186f86029b 136
mbed_official 377:95186f86029b 137 PUBWEAK NMI_Handler
mbed_official 377:95186f86029b 138 PUBWEAK HardFault_Handler
mbed_official 377:95186f86029b 139 PUBWEAK SVC_Handler
mbed_official 377:95186f86029b 140 PUBWEAK PendSV_Handler
mbed_official 377:95186f86029b 141 PUBWEAK SysTick_Handler
mbed_official 377:95186f86029b 142 PUBWEAK DMA0_IRQHandler
mbed_official 377:95186f86029b 143 PUBWEAK DMA1_IRQHandler
mbed_official 377:95186f86029b 144 PUBWEAK DMA2_IRQHandler
mbed_official 377:95186f86029b 145 PUBWEAK DMA3_IRQHandler
mbed_official 377:95186f86029b 146 PUBWEAK Reserved20_IRQHandler
mbed_official 377:95186f86029b 147 PUBWEAK FTFA_IRQHandler
mbed_official 377:95186f86029b 148 PUBWEAK LVD_LVW_IRQHandler
mbed_official 377:95186f86029b 149 PUBWEAK LLW_IRQHandler
mbed_official 377:95186f86029b 150 PUBWEAK I2C0_IRQHandler
mbed_official 377:95186f86029b 151 PUBWEAK I2C1_IRQHandler
mbed_official 377:95186f86029b 152 PUBWEAK SPI0_IRQHandler
mbed_official 377:95186f86029b 153 PUBWEAK SPI1_IRQHandler
mbed_official 377:95186f86029b 154 PUBWEAK UART0_IRQHandler
mbed_official 377:95186f86029b 155 PUBWEAK UART1_IRQHandler
mbed_official 377:95186f86029b 156 PUBWEAK UART2_IRQHandler
mbed_official 377:95186f86029b 157 PUBWEAK ADC0_IRQHandler
mbed_official 377:95186f86029b 158 PUBWEAK CMP0_IRQHandler
mbed_official 377:95186f86029b 159 PUBWEAK TPM0_IRQHandler
mbed_official 377:95186f86029b 160 PUBWEAK TPM1_IRQHandler
mbed_official 377:95186f86029b 161 PUBWEAK TPM2_IRQHandler
mbed_official 377:95186f86029b 162 PUBWEAK RTC_IRQHandler
mbed_official 377:95186f86029b 163 PUBWEAK RTC_Seconds_IRQHandler
mbed_official 377:95186f86029b 164 PUBWEAK PIT_IRQHandler
mbed_official 377:95186f86029b 165 PUBWEAK I2S0_IRQHandler
mbed_official 377:95186f86029b 166 PUBWEAK USB0_IRQHandler
mbed_official 377:95186f86029b 167 PUBWEAK DAC0_IRQHandler
mbed_official 377:95186f86029b 168 PUBWEAK TSI0_IRQHandler
mbed_official 377:95186f86029b 169 PUBWEAK MCG_IRQHandler
mbed_official 377:95186f86029b 170 PUBWEAK LPTimer_IRQHandler
mbed_official 377:95186f86029b 171 PUBWEAK LCD_IRQHandler
mbed_official 377:95186f86029b 172 PUBWEAK PORTA_IRQHandler
mbed_official 377:95186f86029b 173 PUBWEAK PORTD_IRQHandler
mbed_official 377:95186f86029b 174
mbed_official 377:95186f86029b 175 SECTION .text:CODE:REORDER:NOROOT(1)
mbed_official 377:95186f86029b 176 THUMB
mbed_official 377:95186f86029b 177 NMI_Handler
mbed_official 377:95186f86029b 178 HardFault_Handler
mbed_official 377:95186f86029b 179 SVC_Handler
mbed_official 377:95186f86029b 180 PendSV_Handler
mbed_official 377:95186f86029b 181 SysTick_Handler
mbed_official 377:95186f86029b 182 DMA0_IRQHandler
mbed_official 377:95186f86029b 183 DMA1_IRQHandler
mbed_official 377:95186f86029b 184 DMA2_IRQHandler
mbed_official 377:95186f86029b 185 DMA3_IRQHandler
mbed_official 377:95186f86029b 186 Reserved20_IRQHandler
mbed_official 377:95186f86029b 187 FTFA_IRQHandler
mbed_official 377:95186f86029b 188 LVD_LVW_IRQHandler
mbed_official 377:95186f86029b 189 LLW_IRQHandler
mbed_official 377:95186f86029b 190 I2C0_IRQHandler
mbed_official 377:95186f86029b 191 I2C1_IRQHandler
mbed_official 377:95186f86029b 192 SPI0_IRQHandler
mbed_official 377:95186f86029b 193 SPI1_IRQHandler
mbed_official 377:95186f86029b 194 UART0_IRQHandler
mbed_official 377:95186f86029b 195 UART1_IRQHandler
mbed_official 377:95186f86029b 196 UART2_IRQHandler
mbed_official 377:95186f86029b 197 ADC0_IRQHandler
mbed_official 377:95186f86029b 198 CMP0_IRQHandler
mbed_official 377:95186f86029b 199 TPM0_IRQHandler
mbed_official 377:95186f86029b 200 TPM1_IRQHandler
mbed_official 377:95186f86029b 201 TPM2_IRQHandler
mbed_official 377:95186f86029b 202 RTC_IRQHandler
mbed_official 377:95186f86029b 203 RTC_Seconds_IRQHandler
mbed_official 377:95186f86029b 204 PIT_IRQHandler
mbed_official 377:95186f86029b 205 I2S0_IRQHandler
mbed_official 377:95186f86029b 206 USB0_IRQHandler
mbed_official 377:95186f86029b 207 DAC0_IRQHandler
mbed_official 377:95186f86029b 208 TSI0_IRQHandler
mbed_official 377:95186f86029b 209 MCG_IRQHandler
mbed_official 377:95186f86029b 210 LPTimer_IRQHandler
mbed_official 377:95186f86029b 211 LCD_IRQHandler
mbed_official 377:95186f86029b 212 PORTA_IRQHandler
mbed_official 377:95186f86029b 213 PORTD_IRQHandler
mbed_official 377:95186f86029b 214 Default_Handler
mbed_official 377:95186f86029b 215
mbed_official 377:95186f86029b 216 B Default_Handler
mbed_official 377:95186f86029b 217 END