1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #6733 from gebart/pr/kinetis-vectors

kinetis: Refactor interrupt vector definition
This commit is contained in:
Francisco Acosta 2017-03-24 18:18:25 +01:00 committed by GitHub
commit 9e998efb16
4 changed files with 8 additions and 11 deletions

View File

@ -157,8 +157,7 @@ WEAK_DEFAULT void isr_software(void);
/**
* @brief Interrupt vector definition
*/
__attribute__((used, section(".vector_table")))
const void *interrupt_vector[] = {
ISR_VECTORS const void *interrupt_vector[] = {
/* Stack pointer */
(void *)(&_estack), /* pointer to the top of the empty stack */
/* Cortex-M4 handlers */

View File

@ -132,8 +132,7 @@ WEAK_DEFAULT void isr_enet_receive(void);
WEAK_DEFAULT void isr_enet_error(void);
/* interrupt vector table */
__attribute__((used, section(".vector_table")))
const void *interrupt_vector[] = {
ISR_VECTORS const void *interrupt_vector[] = {
/* Stack pointer */
(void *)(&_estack), /* pointer to the top of the empty stack */
/* Cortex-M4 handlers */

View File

@ -23,14 +23,14 @@
SECTIONS
{
/* Interrupt vectors 0x00-0x3ff. */
.vector_table :
.vectors :
{
_isr_vectors = .;
KEEP(*(.vector_table))
KEEP(*(.vectors .vectors.*))
} > vectors
ASSERT (SIZEOF(.vector_table) == 0x400, "Interrupt vector table of invalid size.")
ASSERT (ADDR(.vector_table) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
ASSERT (LOADADDR(.vector_table) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
ASSERT (SIZEOF(.vectors) == 0x400, "Interrupt vector table of invalid size.")
ASSERT (ADDR(.vectors) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
ASSERT (LOADADDR(.vectors) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
/* Flash configuration field, very important in order to not accidentally lock the device */
/* Flash configuration field 0x400-0x40f. */

View File

@ -108,8 +108,7 @@ WEAK_DEFAULT void isr_porte(void);
WEAK_DEFAULT void isr_swi(void);
/* interrupt vector table */
__attribute__((used, section(".vector_table")))
const void *interrupt_vector[] = {
ISR_VECTORS const void *interrupt_vector[] = {
/* Stack pointer */
(void *)(&_estack), /* pointer to the top of the empty stack */
/* Cortex-M4 handlers */