diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-09 14:57:41 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-09 14:57:41 +0000 |
commit | b8dcd884ffaf6856108d2279905503bbd86c33cf (patch) | |
tree | a3bfc65df2e239ad342f7f32302cd59e108d06b2 /os/common/ports/ARMCMx/compilers/GCC/vectors.c | |
parent | a9cbe386f2b49049771c3980d8954275d510cf2f (diff) | |
download | ChibiOS-b8dcd884ffaf6856108d2279905503bbd86c33cf.tar.gz ChibiOS-b8dcd884ffaf6856108d2279905503bbd86c33cf.tar.bz2 ChibiOS-b8dcd884ffaf6856108d2279905503bbd86c33cf.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7744 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/ARMCMx/compilers/GCC/vectors.c')
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/vectors.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/vectors.c b/os/common/ports/ARMCMx/compilers/GCC/vectors.c index 837797b4c..d67d4171b 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/vectors.c +++ b/os/common/ports/ARMCMx/compilers/GCC/vectors.c @@ -30,7 +30,7 @@ #include "cmparams.h"
-#if (CORTEX_NUM_VECTORS & 7) != 0
+#if (CORTEX_NUM_VECTORS % 8) != 0
#error "the constant CORTEX_NUM_VECTORS must be a multiple of 8"
#endif
@@ -73,10 +73,12 @@ typedef struct { *
* @notapi
*/
+/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
void _unhandled_exception(void) {
+/*lint -restore*/
- while (true)
- ;
+ while (true) {
+ }
}
#if !defined(__DOXYGEN__)
@@ -462,7 +464,9 @@ void Vector3FC(void) __attribute__((weak, alias("_unhandled_exception"))); #if !defined(__DOXYGEN__)
__attribute__ ((used, section("vectors")))
#endif
+/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
vectors_t _vectors = {
+/*lint -restore*/
&__main_stack_end__,Reset_Handler, NMI_Handler, HardFault_Handler,
MemManage_Handler, BusFault_Handler, UsageFault_Handler, Vector1C,
Vector20, Vector24, Vector28, SVC_Handler,
|