Sebastian Kuzminsky wrote: > paul_c wrote: >> On Sunday 10 August 2008, Sebastian Kuzminsky wrote: >>> It looks like rtai has semaphores but doesnt support blocking in the >>> kernel (no run queues). Maybe something like spinlocks could be built >>> around the non-blocking semaphore calls. >> You want one of the rt_spinlock calls defined in rtai_hal.h ... >> Probably rt_spin_lock_irq() and rt_spin_unlock_irq() would satisfy your >> needs >> without incurring and undue overhead - With the proviso that the EPP access >> cycle is kept to a minimum.
Hm, looks like rt_spin_lock() and friends are not exported through rtapi. It looks like it would be easy to add a bunch of functions (or maybe preprocessor macros) to call the RTAI locking code through RTAPI front-end functions, but I dont (yet) know how to do this stuff with RT-Linux, and I dont currently have a way to build & test RT-Linux side of any RTAPI locking implementation. Are there maybe some RT-Linux systems in the EMC2 build farm? Does anyone run EMC2 on RT-Linux? -- Sebastian Kuzminsky Cryogenic travel has improved since then... I woke screaming in a translucent box. “There, there,” said the box. “Everything will be all right. Have some coffee.” -- Ken Macleod, "Who's afraid of Wolf 359" <http://outofthiseos.typepad.com/blog/files/KenMacleodWhosAfraidofWolf359.htm> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
