RTEMS | cpukit/score/cpu/or1k: The exception vector table and the context validation (#5686)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Mon Aug 17 02:23:11 UTC 2026
Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5686
Three defects of the port and its link scripts.
The link script does not keep the exception vector table, so `--gc-sections`
removes it and the processor takes its vectors from whatever follows.
`_CPU_Instruction_illegal()` emits a `.word 0`, which is `l.j 0` on this
architecture and branches to itself, so `spfatal26` hangs rather than taking the
illegal instruction exception.
`_CPU_Context_validate()` and `_CPU_Context_volatile_clobber()` do not cover the
registers which the context switch and the interrupt processing save and
restore, so `spcontext01` cannot detect a defect in either.
Found while running the full test suite on Qemu. This description was created
with Claude Code assistance.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5686
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-1kwh7x4oab3jmtx2qiw8vqrne-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/20260817/b5e2d8a5/attachment-0001.htm>
More information about the bugs
mailing list