RTEMS | bsps/powerpc: The psim PCI BAT and the fast idle loop (#5744)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Thu Sep 3 02:36:14 UTC 2026
Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5744
The psim BSP maps 256 MiB of RAM with DBAT0. The PCI BAT starts at
`0x08000000`, which lies inside that range. `setdbat()` rejects an overlap, so
it prints "BATs must not overlap" at every boot and leaves the register
unprogrammed. The simulator has no PCI bus and the device tree declares no
device at that address.
The fast idle loop of the decrementer driver moves the time base forward while
the idle thread is the executing thread and the heir. It has no other exit. A
test which gives the idle thread a priority above a ready task therefore keeps
the processor in the clock interrupt and no thread runs again. `ts-userext` on
psim stops at its last action. The shared loop of `clockimpl.h` has the exit
which this one lacks.
Found while running the test suite of the BSP on the simulator. This
description was created with Claude Code assistance.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5744
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-8s4a36h54k5gwa2hh0opx6atd-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/20260903/3163d530/attachment.htm>
More information about the bugs
mailing list