All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Mandar Thite <mandarthite@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] ARM I-pipe port to OMAP osk board
Date: Thu, 22 Jan 2009 20:14:41 +0100	[thread overview]
Message-ID: <4978C5A1.4080302@domain.hid> (raw)
In-Reply-To: <8e2adebc0901221104y18d09bb5l3d5645f77e4f42ed@domain.hid>

Mandar Thite wrote:
> Hello everyone,
> I am trying to port I-pipe to OMAP5912 SoC. I have query related to follwing
> snippet from the page <http://xenomai.org/index.php/I-pipe:ArmPorting>.
> 
> /****************
> 
> The timer interrupt handler should be modified in two ways:
> 
>    - first, if the timer interrupt needs to be acknowledged in some way
>    (clearing a
> 
> flag in a hardware register, reading a status in a hardware register,
> etc...), this acknowledgement must be put in __ipipe_mach_acktimer, because
> when the timer is handled by Xenomai, timer interrupts will no longer get
> handled by Linux timer interrupt handler.
> *****************/
> 
> What I understood from this is, that __ipipe_mach_acktimer() should include
> routine for letting the timer peripheral know that the interrupt generated
> by it has been serviced so the peripheral can deassert the interrupt
> request. But my datasheet says that interrupts generated by this peripheral
> are edge sensitive. So does this fact make the function
> __ipipe_mach_acktimer() dummy?
> Thanks.---Mandar

The acknowledgment done by __ipipe_mach_acktimer() is the
acknowledgement at hardware timer level, not at interrupt controller
level. You find this acknowledgement generally in Linux timer interrupt
code. For instance, for the omap 32k timer, implemented in
arch/arm/mach-omap1/timer32k.c, you would write:

void __ipipe_mach_acktimer(void)
{
	omap_32k_timer_ack_irq();
}

-- 
					    Gilles.


  reply	other threads:[~2009-01-22 19:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-31 18:08 [Xenomai-help] ARM I-pipe port to OMAP osk board Mandar Thite
2008-12-31 18:10 ` Gilles Chanteperdrix
2009-01-22 19:04   ` Mandar Thite
2009-01-22 19:14     ` Gilles Chanteperdrix [this message]
2009-01-22 22:08       ` Mandar Thite
2009-01-22 22:10         ` Gilles Chanteperdrix
2009-01-22 23:06           ` Mandar Thite
2009-01-23  9:46             ` Philippe Gerum
2009-01-23 15:37               ` Mandar Thite

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=4978C5A1.4080302@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mandarthite@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.