From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Aurele Traynard <aurele.traynard@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] reading/writing registers
Date: Wed, 04 May 2011 09:23:09 +0200 [thread overview]
Message-ID: <4DC0FEDD.8080304@domain.hid> (raw)
In-Reply-To: <BANLkTi=Pj2Rk0u_ih7zKx+pmyhSTGM3Y-Q@mail.gmail.com>
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.
next prev parent reply other threads:[~2011-05-04 7:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 12:07 [Xenomai-help] reading/writing registers Aurele Traynard
2011-05-03 17:36 ` Gilles Chanteperdrix
2011-05-04 7:11 ` Aurele Traynard
2011-05-04 7:23 ` Gilles Chanteperdrix [this message]
2011-05-04 8:59 ` Aurele Traynard
2011-05-04 9:25 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DC0FEDD.8080304@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=aurele.traynard@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.