Re: [PATCH] _ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16

2016-02-21 Thread Sebastian Huber
On 19/02/16 15:32, Martin Galvan wrote: 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; The ARMv7-M manual says that external interrupts s

Re: [PATCH] _ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16

2016-02-19 Thread Joel Sherrill
This should be committed now. Thanks. On Fri, Feb 19, 2016 at 8:32 AM, Martin Galvan < martin.gal...@tallertechnologies.com> wrote: > Also add a comment explaining why we use that value. > --- > cpukit/score/cpu/arm/rtems/score/armv7m.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >

[PATCH] _ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16

2016-02-19 Thread Martin Galvan
Also add a comment explaining why we use that value. --- cpukit/score/cpu/arm/rtems/score/armv7m.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpukit/score/cpu/arm/rtems/score/armv7m.h b/cpukit/score/cpu/arm/rtems/score/armv7m.h index 251ecdc..0a69363 100644 --- a/cpukit