[PATCH] _ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16

Joel Sherrill joel at rtems.org
Fri Feb 19 22:14:02 UTC 2016


This should be committed now. Thanks.

On Fri, Feb 19, 2016 at 8:32 AM, Martin Galvan <
martin.galvan at 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(-)
>
> 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/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)
> --
> 2.7.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160219/abe02abd/attachment-0002.html>


More information about the devel mailing list