A potential Xenomai Mutex issue

Jan Kiszka jan.kiszka at siemens.com
Fri Aug 23 18:18:40 CEST 2019


On 23.08.19 17:49, DIAO, Hanson (DI PA CI RC R&D SW2) wrote:
> Hi Jan,
> 
> Thank you for your reply. Please see my following comments. Thank you so much.
> 
> 
> For the issue 2 the test case is very simple. The lock sequence is as below. After ReadReg function I checked the lockcnt. The lockcnt is 1.
> Int writeReg()
> {
>       SMILock();
>       ReadReg();
>       ......
>       SMIUnlock();
> }
> 
> Int ReadReg()
> {
>       SMILock();
>       /*  Check the lockcnt here. It is still 1, should be 2 */
>       ........
>       ......
>       SMIUnlock();
> }

Is the thread doing any migrations to secondary mode between the entry of 
writeReg and the checking of lockcnt?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list