RTEMS | testsuites/validation: The MicroBlaze wrapper reads the interrupt stack (#5727)

Sebastian Huber (@sebhub) gitlab at rtems.org
Mon Aug 24 01:42:05 UTC 2026



Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5727



The `__wrap_bsp_interrupt_dispatch()` of `tc-score-isr.c` for MicroBlaze reads
the stack pointer register `r1` to obtain the stack of the interrupted context.
`_ISR_Handler` switches to the interrupt stack before it calls the dispatch, so
the register always holds the interrupt stack. The check of `ScoreIsrValIsr`
can never pass and `ts-validation-intr` reports one failed step for it.

The switch to the interrupt stack stores the stack pointer of the interrupted
context at the begin of the frame at the top of the interrupt stack. The
AArch64 wrapper in the same file reads its equivalent for the same reason.

Found while running the full test suite on eleven simulators. This description
was created with Claude Code assistance.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5727
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-f4gy88dkmbzvbkibiw3o7tzkh-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/20260824/6137e35a/attachment.htm>


More information about the bugs mailing list