On 05/04/2011 10:59 AM, Aurele Traynard wrote:
> 2011/5/4 Gilles Chanteperdrix <[email protected]>
> 
>> On 05/04/2011 09:11 AM, Aurele Traynard wrote:
>>> Ok I will explain more things :
>>> My software makes the system freezing, when my interrupt handler is
>> called
>>> for the first time I think that he is called again and again and again
>> and
>>> this never stops. And so this freeze the system
>>> but I am not totaly sure.
>>> I'm sure that it is not Xenomai's fault it is just mine. I think I don't
>> use
>>> Xenomai correctly...
>>> That's why I am asking if "ioremap" "readl/writel" is the best way to
>>> read/write CPU registers and if there are other ways.
>>
>> Yes they are. But if your aim is to acknowledge/mask the interrupt line
>> at the interrupt controller level, this should not be done in the
>> interrupt handler, it is supposed to be done in the irqchip callbacks
>> for the interrupt controller you use.
>>
>> --
>>                                                                 Gilles.
>>
> 
> Ok if i understood I should put acknowledge/mask in a callback, and this
> callback should be the "rthal_irq_ackfn_t ackfn" argument (in
> rthal_irq_request)?

Maybe it will work, but the correct way to do this is to rely on the
Linux irq chip abstraction layer.

> But if I would like to read write any other register in my interrupt handler
> how should I do?

Use readl.

-- 
                                            Gilles.

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

Reply via email to