summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/rtems
diff options
context:
space:
mode:
authorMartin Galvan <martin.galvan@tallertechnologies.com>2016-02-19 11:32:47 -0300
committerJoel Sherrill <joel@rtems.org>2016-02-19 16:11:29 -0600
commit86a276b5f3d9185db3430b91e646b334b7e20948 (patch)
treed973496e876cb84751b68f43ce69d7d79afebf66 /cpukit/score/cpu/arm/rtems
parentarm: Fixed typo in file bbb-gpio.c (diff)
downloadrtems-86a276b5f3d9185db3430b91e646b334b7e20948.tar.bz2
_ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16
Also add a comment explaining why we use that value.
Diffstat (limited to 'cpukit/score/cpu/arm/rtems')
-rw-r--r--cpukit/score/cpu/arm/rtems/score/armv7m.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/cpu/arm/rtems/score/armv7m.h b/cpukit/score/cpu/arm/rtems/score/armv7m.h
index 251ecdce39..0a69363c7f 100644
--- a/cpukit/score/cpu/arm/rtems/score/armv7m.h
+++ b/cpukit/score/cpu/arm/rtems/score/armv7m.h
@@ -386,7 +386,8 @@ typedef struct {
static inline bool _ARMV7M_Is_vector_an_irq( int vector )
{
- return vector >= 16;
+ /* External (i.e. non-system) IRQs start after the SysTick vector. */
+ return vector > ARMV7M_VECTOR_SYSTICK;
}
static inline uint32_t _ARMV7M_Get_basepri(void)