Jeff Weber wrote: > Thanks Jan. > > Another thought: is there a direct Adeos call to enable/disable all > interrupts, with nesting from user space?
Not yet, but that would be one option for the scenario I described.
>
> I'm porting some legacy RTAI code to the Xenomai native skin. The RTAI code
> has rtai_save_flags_and_cli()/rtai_restore_flags() for enabling/disabling all
> interrupts direct from user space, with capability to handle nested calls.
You can use even more assembly magic in user-space for now:
#define local_irq_save(x) \
__asm__ __volatile__("pushfl; popl %0; cli":"=g" (x)::"memory")
#define local_irq_restore(x) \
__asm__ __volatile__("pushl %0; popfl": :"g" (x):"memory", "cc")
Hope your RTAI code takes care of SMP as well (or excludes the execution
on such boxes).
>
> Yes, please add this to the native skin "wish list", along with a nesting
> capability.
Won't you? => http://www.xenomai.org/wiki/index.php/TaskMarket
Ideas and requests on the mailing list are starting become volatile with
the increasing traffic we see...
Jan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
