[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] cli(), sti() and others....



roux jean-denis wrote:
> 
>    Hi all,
> 
>   When I 'm in a RTAI module, can I use the standards
> cli(), sti() save_flags() etc.... or did I have to
> turn them to RT??
> 
>    Thanks in advance for your answer.
>    Regards
>    Jean-Denis ROUX

Sorry, I thought I answered already. The functions above are useless
with RTAI and RTL as they do not insure real time atomic operations.

For RTAI you must use: hard_cli, hard_sti, hard_save_flags,
hard_restore_flags. There is also hard_save_flags_and_cli. Just include
Linux system.h. For RTL is the same, but the functions names are
different. Sorry but I do not remember them at the moment.

Ciao, Paolo.