public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Erik Christiansen <erik@dd.nec.com.au>
To: Nick Garnett <nickg@ecoscentric.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Interrupt-free scheduler
Date: Tue, 05 Apr 2005 09:20:00 -0000	[thread overview]
Message-ID: <20050405091838.GE677@dd.nec.com.au> (raw)
In-Reply-To: <m3k6ni5ybq.fsf@xl5.calivar.com>

On Mon, Apr 04, 2005 at 04:57:45PM +0100, Nick Garnett wrote:
> What exactly are you trying to do? If you don't have any interrupting
> devices, then eCos will run just fine.

The task is to provide a uitron API to an existing PPC850 card, which
does have interrupting devices. The original OS knows nothing about
interrupts. Our ISRs handle all that. If eCos were to fiddle with
interrupts, we couldn't just leave the ISRs in place, as part of the
port.

Fortunately, I've now learned enough about enabling and disabling
components in a .ecc file to disable everything that smells of
interrupts, and resolve the conflicts. Hopefully eCos will now be
unaware of interrupts.

> Some things, like timers, will not work, but presumably you have
> already allowed for that.

Oh yes, the timers. It took several cycles to resolve those conflicts,
but with persistence, they're gone too. The application provides timers
from a task. As a first cut, I'm kinda hoping to re-use that as is.
Although a bit weird, it works like a bought one.

Reconfiguring eCos is faster and more robust than recoding all the timer
stuff in the application. (You wouldn't want to know the proposed
schedule for this. But then, you've probably been there, at least once. ;)

Things are now fine up to cyg_user_start(), running on the target. (Just
turning on a few LEDs.) Next step is a thread or two, but I'll have to
translate the examples to uitron API first.

Erik


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      parent reply	other threads:[~2005-04-05  9:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04  5:50 Erik Christiansen
2005-04-04 15:58 ` Nick Garnett
2005-04-04 20:13   ` [ECOS] simple hello world on i386 target Gonçalo Antunes
2005-04-04 20:18     ` Gary Thomas
2005-04-04 21:03       ` Gonçalo Antunes
2005-04-04 23:41       ` Gonçalo Antunes
2005-04-05  9:20   ` Erik Christiansen [this message]

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=20050405091838.GE677@dd.nec.com.au \
    --to=erik@dd.nec.com.au \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=nickg@ecoscentric.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).