RTEMS | SMP: Add support for the MPCP locking protocol (!1358)

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Jul 22 00:33:52 UTC 2026




Gedare Bloom started a new discussion on cpukit/include/rtems/rtems/semdata.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1358#note_154969

 >  
 >  #if defined( RTEMS_SMP )
 >      MRSP_Control MRSP;
 > +    MPCP_Control MPCP;

these should be a union, if they cannot use the same struct definition. I would however prefer a single struct with some kind of polymorphism/inheritance type of approach, like...

```
struct MRSP_Control {
  Multiprocessor_locking_Control base;
  /* MrsP specific parts here */
};

struct MPCP_Control {
  Multiprocessor_locking_Control base;
  /* MPCP specific parts here */
}
```

The challenge is to embed the information needed in the lock fast path to avoid having to follow pointers.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1358#note_154969
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-81hsfnymd97uwkrnh4e34elhp-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/20260722/29d298b7/attachment.htm>


More information about the bugs mailing list