RTEMS | Draft: testsuites/validation: Take the interrupted stack on MicroBlaze (!1462)

Sam Price (@TheSamPrice) gitlab at rtems.org
Tue Sep 1 02:45:32 UTC 2026



Sam Price created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1462

Project:Branches: TheSamPrice/rtems:tm27-mb-update-rebased to rtems/rtos/rtems:main
Author:   Sam Price



## Summary

testsuites/validation: Take the interrupted stack on MicroBlaze

The MicroBlaze ISR prologue switches to the per-CPU interrupt stack and
saves the stack pointer of the interrupted thread at the start of the
interrupt frame.  The wrapper captured r1 directly, so it recorded the
interrupt stack pointer instead of the stack pointer of the interrupted
thread and ScoreIsrValIsr checked the wrong stack range.

Recover the saved stack pointer from the interrupt frame when the
wrapper runs on the interrupt stack.

Signed-off by: Sam Price
Assisted-By: Claude Opus 5 (1M context) <noreply at anthropic.com>


## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1462
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-7hox4km1wwxjn3w7zsq5nygzu-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/20260901/7906f6b8/attachment.htm>


More information about the bugs mailing list