aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/ARMCMx/compilers/GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-02 08:51:50 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-02 08:51:50 +0000
commit96be7a6300d294e65c042dcf87180166d7e7153f (patch)
tree3e4179dcff19029c7eaac0e48a9f7791ff267050 /os/rt/ports/ARMCMx/compilers/GCC
parent8869375cd3f20a6eb979d43de8e876f7dc857dd7 (diff)
downloadChibiOS-96be7a6300d294e65c042dcf87180166d7e7153f.tar.gz
ChibiOS-96be7a6300d294e65c042dcf87180166d7e7153f.tar.bz2
ChibiOS-96be7a6300d294e65c042dcf87180166d7e7153f.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6239 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports/ARMCMx/compilers/GCC')
-rw-r--r--os/rt/ports/ARMCMx/compilers/GCC/vectors.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/os/rt/ports/ARMCMx/compilers/GCC/vectors.c b/os/rt/ports/ARMCMx/compilers/GCC/vectors.c
index 0234bbdd5..707f8b7b1 100644
--- a/os/rt/ports/ARMCMx/compilers/GCC/vectors.c
+++ b/os/rt/ports/ARMCMx/compilers/GCC/vectors.c
@@ -28,14 +28,17 @@
* @{
*/
-#include "ch.h"
+#include <stdbool.h>
+#include <stdint.h>
-#if (CORTEX_NUM_VECTORS & 3) != 0
-#error "the constant CORTEX_NUM_VECTORS must be a multiple of 4"
+#include "cmparams.h"
+
+#if (CORTEX_NUM_VECTORS & 7) != 0
+#error "the constant CORTEX_NUM_VECTORS must be a multiple of 8"
#endif
-#if (CORTEX_NUM_VECTORS < 4) || (CORTEX_NUM_VECTORS > 240)
-#error "the constant CORTEX_NUM_VECTORS must be between 4 and 240 inclusive"
+#if (CORTEX_NUM_VECTORS < 8) || (CORTEX_NUM_VECTORS > 240)
+#error "the constant CORTEX_NUM_VECTORS must be between 8 and 240 inclusive"
#endif
/**
@@ -78,7 +81,7 @@ __attribute__ ((naked))
#endif
void _unhandled_exception(void) {
- while (TRUE)
+ while (true)
;
}