diff options
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,
|