osd-contiki/cpu
Benoît Thébaudeau 96dd24836c cc2538: Use &vectors instead of flash/.text start address
The current CC2538 linker script in Contiki places the vector table at
the beginning of the flash memory / .text output section. However, this
location is arbitrary (the only requirement is that the vector table is
512-byte aligned), and custom linker scripts may be used with Contiki,
which means that Contiki may be used with a vector table placed
elsewhere. Thus, using the flash/.text start address in the CCA and as
the default NVIC VTABLE value was wrong.

This commit rather uses the address of the vectors[] array from
startup-gcc.c, which makes it possible to freely move around the vector
table without breaking anything or having to use a custom startup-gcc.c
and to configure the NVIC driver for that. Moreover, referencing the
vectors[] array naturally prevents it and its input section from being
garbage-collected by the linker, so this commit also removes the
now-unneeded "used" and "KEEP" keywords from the vector table.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2015-11-19 01:18:33 +01:00
..
6502 Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
arm doxygen: Fix some warnings 2015-06-20 03:22:31 +02:00
avr Remove commented-out code 2015-10-20 10:11:47 +02:00
cc26xx-cc13xx Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
cc253x Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
cc2430 Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
cc2538 cc2538: Use &vectors instead of flash/.text start address 2015-11-19 01:18:33 +01:00
mc1322x Merge pull request #685 from SmallLars/mc1322x 2015-09-13 12:35:53 -05:00
msp430 Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
native Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
pic32 [cpu/pic32] Removed excess end group 2014-11-10 23:53:33 +01:00
rl78 The -pedantic and -stdc flags trigger a few too many warnings 2015-10-20 10:11:35 +02:00
stm32w108 mbxxx: added missing undefs 2015-10-20 09:37:28 +02:00
x86 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00