All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Detlef Vollmann <dv@domain.hid>,
	Jan Kiszka <jan.kiszka@domain.hid>,
	xenomai@xenomai.org
Subject: Re: [Xenomai-core] Some questions about the ARM port (Integrator vs.	PXA)
Date: Mon, 3 Jul 2006 15:00:44 +0200	[thread overview]
Message-ID: <17577.5372.702355.432641@domain.hid> (raw)
In-Reply-To: <17577.4096.436840.354535@domain.hid>

Gilles Chanteperdrix wrote:
 > Detlef Vollmann wrote:
 >  > It's not so difficult to work around the problem for a single system.
 >  > What's difficult is to find a solution in a framework that wasn't
 >  > built with such a problem in mind.
 > 
 > Actually, all architectures have a delay below which they can not be
 > reprogrammed fast enough. This delay is simply 0 for all of them.
 > 
 > How about rewriting rthal_timer_program_shot as:
 > 
 > static inline void rthal_timer_program_shot (unsigned long delay)
 > {
 >     if(delay < __ipipe_mach_min_delay)
 >         rthal_trigger_irq(RTHAL_TIMER_IRQ);
 >     else
 >         __ipipe_mach_set_dec(delay);
 > }
 > 
 > And define __ipipe_mach_min_delay to be 8 ticks for the PXA architecture ?

You can even do this in __ipipe_mach_set_dec, this avoid the need to
modify I-ipipe non-machine specific code. Something like:

void __ipipe_mach_set_dec(unsigned long delay)
{
    if (delay < 8)
        ipipe_trigger_irq(__ipipe_mach_timerint);
    else
        OSMR0 = OSCR + delay;
}

Supposing that OSSR=OSSR_M0 is done elsewhere.

-- 


					    Gilles Chanteperdrix.


  reply	other threads:[~2006-07-03 13:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-29  8:38 [Xenomai-core] Some questions about the ARM port (Integrator vs. PXA) Detlef Vollmann
2006-06-29 14:46 ` Stelian Pop
2006-06-30  6:31   ` Detlef Vollmann
     [not found]   ` <44A4C4CB.5F24DA68@domain.hid>
2006-06-30  8:53     ` Stelian Pop
2006-07-03  5:56       ` Detlef Vollmann
2006-07-03  6:33         ` Jan Kiszka
2006-07-03  8:38           ` Detlef Vollmann
2006-07-03  9:37             ` Jan Kiszka
2006-07-03 12:39             ` Gilles Chanteperdrix
2006-07-03 13:00               ` Gilles Chanteperdrix [this message]
2006-07-04  6:43                 ` Detlef Vollmann
2006-07-04 14:09                   ` Jan Kiszka
2006-07-05 22:32                     ` Detlef Vollmann
2006-07-05 22:42                       ` Detlef Vollmann
2006-07-05 13:03                   ` Gilles Chanteperdrix
2006-07-05 23:44                     ` Detlef Vollmann
2006-07-06  7:15                       ` Jan Kiszka

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=17577.5372.702355.432641@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=dv@domain.hid \
    --cc=jan.kiszka@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.