public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Matt Sartori <msartori@hanoverdisplays.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
	eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: RE: [ECOS] interrupt/virtual vectors confusion
Date: Tue, 16 Aug 2005 14:35:00 -0000	[thread overview]
Message-ID: <1124202939.29732.79.camel@hermes> (raw)
In-Reply-To: <F9885E669725F248A1F6DB9109FDD67905E4D4@Molly.hanover.local>

On Tue, 2005-08-16 at 15:27 +0100, Matt Sartori wrote:
> Eeek! But that would mean that Redboot can only properly work as a
> bootloader for Redboot "enabled" programs. It was my understanding (and
> basis for advocating it as a viable alternative to writing our own
> custom bootloader) that Redboot is able to run any application and only
> re-appear when the board is reset.

It absolutely *can* do what you want, but if your hardware does not 
have an easy way to redirect the VSR handling (where code jumps to when
an interrupt or exception happens), then you'll have to add some code
to your HAL to make this work cooperatively.  If that's the case, then
your application will still have to somehow indicate to RedBoot what it
wants to do when the interrupt or exception happens.  We're just talking
semantic details here - either you invent some mechanism to handle this
or you run eCos programs (which will also have to have similar 
mechanisms via the HAL).

> -----Original Message-----
> From: Gary Thomas [mailto:gary@mlbassoc.com] 
> Sent: 16 August 2005 15:18
> To: Matt Sartori
> Cc: Andrew Lunn; eCos Discussion
> Subject: RE: [ECOS] interrupt/virtual vectors confusion
> 
> On Tue, 2005-08-16 at 15:06 +0100, Matt Sartori wrote:
> > >Is Blinky an eCos RAM program? If so it should of taken over the
> > >interrupt vectors from Redboot. Redboot should no longer be active
> > >unless blinky actually calls into Redboot via the virtual vectors.
> > 
> > Blinky is just a standalone program I decided to use as a test. The
> only
> > change I've made to it to make it run is to link it directly into free
> > ram so that I can run it after having loaded it from Redboot (with a
> > load -r -m ymodem -b 0x20005b68). 
> > The reason I know that Redboot is handling (or at least that Redboot
> > code is being called) the IRQ is that I put while(1){flash an led
> every
> > second} at the top of hal_IRQ_handler and that it gets stuck there
> when
> > I run Blinky.
> 
> Then, this is just as it should be :-)  Unless you make Blinky into an
> eCos program, which uses the HAL interrupt mechanisms, RedBoot is quite
> happily going to try and handle the interrupt, etc.
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> 
> 
> --------------------------------------------------------------------------------
> 
> 
> The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
> 
> If you received this in error, please contact the sender or postmaster (postmaster@hanoverdisplays.com) and delete the material from any computer.
> 
> Although we routinely screen for viruses, addressees should check this e-mail and any attachment for viruses. We make no warranty as to absence of viruses in this e-mail or any attachments.
> 
> Our Company's email policy is to permit incidental personal use. If this email is of a personal nature, it must not be relied upon as expressing the views or opinions of the company.
> 
> Visit out website at www.hanoverdisplays.com
> 
> 
> 
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


-- 
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-08-16 14:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-16 14:27 Matt Sartori
2005-08-16 14:30 ` Andrew Lunn
2005-08-16 14:35 ` Gary Thomas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-17  9:32 Matt Sartori
2005-08-17  8:38 Matt Sartori
2005-08-17  7:41 Matt Sartori
2005-08-17  9:08 ` Andrew Lunn
2005-08-16 15:03 Matt Sartori
2005-08-16 15:21 ` Andrew Lunn
2005-08-16 14:52 Matt Sartori
2005-08-16 14:40 Matt Sartori
2005-08-16 14:54 ` Andrew Lunn
2005-08-16 14:56   ` Andrew Lunn
2005-08-16 14:17 Matt Sartori
2005-08-16 14:06 Matt Sartori
2005-08-16 14:17 ` Gary Thomas
2005-08-16 14:25 ` Andrew Lunn
2005-08-16 13:24 Matt Sartori
2005-08-16 13:38 ` Gary Thomas
2005-08-16 13:41 ` Andrew Lunn

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=1124202939.29732.79.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=msartori@hanoverdisplays.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).