Sebastian Huber created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1396

Project:Branches: sebhub/rtems:up/or1k-interrupts to rtems/rtos/rtems:main
Author:   Sebastian Huber



## Summary

Issue #5684: The clock tick runs inside every critical section

The port disables all maskable interrupts, the clock driver survives a late
tick, the BSP gains a driver for the programmable interrupt controller and
`tm27` support, and the interrupt critical tests are no longer excluded.

The first commit is the include guard fix of #5687, which both issues need,
because `bsp/generic_or1k.h` expands to nothing without it. Whichever merge
request lands second drops that commit on the rebase.

The interrupt support commit also adds the `or1k` wrapper of `ScoreIsrValIsr`.
`validation-intr.yml` already wraps `bsp_interrupt_dispatch()`, so a BSP which
defines that function has to provide the wrapper, otherwise
`ts-validation-intr` does not link.

Commits:

- `bsps/or1k/generic_or1k: Fix the include guard`
- `cpukit/score/cpu/or1k: Restore the interrupt level`
- `cpukit/score/cpu/or1k: Fix _CPU_ISR_Is_enabled()`
- `cpukit/score/cpu/or1k: Disable all interrupts`
- `bsps/or1k/generic_or1k: Fix the clock driver`
- `bsps/or1k/generic_or1k: Add interrupt support`
- `bsps/or1k/generic_or1k: Add tm27 support`
- `bsps/or1k/generic_or1k: Run the excluded tests`

**BSP** `or1k/generic_or1k` ยท **Simulator** Qemu, `-machine virt -cpu or1200
-icount shift=4`

## AI Details
<!-- Make sure you have read our statement at 
https://www.rtems.org/generative-ai/ -->

### Prompt used

None as a single prompt.  The work was done in an interactive Claude Code
session on the RTEMS tree.  The task was to run the test suites of the
simulator BSPs, diagnose every failure and fix the cause.  Each change was
directed and reviewed.

### AI model used

Claude Opus 5 (claude-opus-5), through Claude Code.

### How AI was used for the contribution

- [ ] Formatting
- [ ] Test creation.
- [x] Code comments.
- [ ] The entire contribution was generated using AI
- [ ] AI code completion such as Copilot in VSCode.

The diagnosis and the implementation were produced in that session under my
direction, and the commit messages were drafted there.

### Access

I have not used a product which claims copyright in its output, and I have
legitimate access to the one I used.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1396
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/sent_notifications/5-e8lwr0qf251maxaaoo9cxysxe-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to