RTEMS | Draft: Simplify termination procedure (!121)

Chris Johns (@chris) gitlab at rtems.org
Wed Aug 14 23:05:25 UTC 2024




Chris Johns commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/121#note_111046


Reset can be overridden by an app by overriding the call using the linker. An example is a Zynq app I know of where the hardware uses a watchdog to override the default reset behavior because the SoC generate reset does not drive POR low. The system level requirement is all hardware must be reset by software. This change sort of breaks that decade old application. You could argue the additional arguments will be ignored. I would rather we acknowledge that rather than ignore it.

The other problem is deciding if these `bootcard` calls are interfaces we need to maintain? I do not have an answer for this because it is double edged and can cut both ways.

I like `void bsp_reset(void)` because it is clearly about performing a reset and nothing more. The addition of the options implies extra functionality. Do the arguments mean there can optionally be an extra layer added in a BSP before the actual reset is performed? What do you see the arguments being used for?

I also noticed BSPs have slightly different signatures, some with attributes? Does this means the function signature is BSP specific?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/121#note_111046
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240814/f12959ac/attachment.htm>


More information about the bugs mailing list