RTEMS | bsps/leon3: Limit the interrupt map to 32 lines (!1514)
Matteo Concas (@matteo.concas)
gitlab at rtems.org
Mon Sep 28 05:45:17 UTC 2026
Matteo Concas started a new discussion on bsps/sparc/leon3/start/eirq.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1514#note_160070
>
> #ifdef LEON3_IRQAMP_IRQMAP
> /* Mapping from bus interrupt lines to IRQ(A)MP interrupt lines */
> -rtems_vector_number LEON3_IrqCtrl_Mapping[ BSP_INTERRUPT_VECTOR_MAX_MAP + 1 ];
> +rtems_vector_number LEON3_IrqCtrl_Mapping[ BSP_INTERRUPT_VECTOR_COUNT ];
> +
> +/*
> + * A map field is eight bits wide. A field value above the last interrupt
> + * line of the IRQ(A)MP selects no interrupt line. Line 0 is no interrupt.
> + */
> +static rtems_vector_number leon3_irqmap_line( uint32_t field )
I don't know in which situations would reading this register gives an invalid value (I don't think it's possible unless you get a bus error or a SEU). But I don't think we should fail silently in this case since the software map will not be representative of the hardware one.
Note that when _writing_ to the mapping registers, each value is bounded using a modulo of the maximum bus interrupt line in the system. So on the GR740, writing 33 to one of the fields will result in a mapping to interrupt line 1.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1514#note_160070
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-b2gz2swx5oqihanxg7tsc1i2s-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260928/472e583e/attachment-0001.htm>
More information about the bugs
mailing list