Bosko Radivojevic wrote:
> Hi Philippe,
> 
> is the usage of __raw_writel(), dma_map_single() and simillar
> functions "allowed" in native skin?
> 

I'm assuming you mean "real-time mode". __raw_write routines should always be
ok, but dma_map_single() has an arch-dependent implementation. I would be ok to
call it on Blackfin from a real-time (i.e. non plain Linux) context, but this
would break on ARM.

The rule of thumb is that a Linux service may be called from a co-kernel context
only if it does not depend on:
- regular interrupt control ops (local_irq_*)
- regular spin locks (spin_*)

Which leaves very few candidates, actually.

E.g. dma_map_single() on ARM may invoke kmalloc(), which would break all the
assumptions above.

> Kind regards,
> Bosko
> 


-- 
Philippe.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to