public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Robin Farine <acnrf@dial.eunet.ch>
To: Hugo Tyson <hmt@redhat.com>
Cc: acnrf@dial.eunet.ch, msalter@redhat.com, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] RM7000 interrupt handling
Date: Tue, 31 Jul 2001 09:59:00 -0000	[thread overview]
Message-ID: <86wv4pyqzv.fsf@halftrack.hq.acn-group.ch> (raw)
In-Reply-To: <200107311643.f6VGhMx22565@masala.cambridge.redhat.com>

Hugo Tyson <hmt@redhat.com> writes:

[...]

> > 
> > 1. the startup code presets the per-source interrupt bits and they never change
> >    after that; code should use the devices internal interrupt controllers to
> >    enable/disable interrupt sources.
> > 
> > 2. the interrupt VSR and ISRs use the master interrupt bit only => no nested
> >    interrupts
> > 
> > 3. the rest of the code can safely disable and restore interrupts using the
> >    master interrupt bit only;
> 
> You remember well, I think.
> 
> Yes, those conditions would fix the situation - I think that (1.) and (3.)
> alone (ie. VSRs and ISRs don't diddle the interrupt bit at all) would be
> OK, ISRs must use only the method in (1.)

Yes right, the ISRs don't but the VSR has to reenable interrupts for the DSRs,
no?

>  
> > What do you think, too much restrictive for eCos?
> 
> Sadly I do think that; we want HAL_MASK_INTERRUPTS() et al to work!  Having
> them be a NOP for the low range of interrupt numbers would be, um, awkward?

Wouldn't it be suffiscient if they only use the master bit? Why would the
common, device independent code touch the other bits whose meaning is platform
dependent anyway (the software interrupts excepted)?

> We don't want the HAL to have to know about the Ethernet hardware details, for
> example, if you're not including the ethernet package; but it would need to
> know about the ether control regs to mask its interrupt outside of the status
> register.

Yeah, but the device's ISR knows about the device and thus can disable the
device interrupts, and the associated DSR reenables them.

> 
> I'll continue having a think about this and see what we come up with.
> 
> 	- Huge

  reply	other threads:[~2001-07-31  9:59 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-30  7:47 [ECOS] i386 TARGET network programming Trenton D. Adams
2001-07-30 11:59 ` Jonathan Larmour
2001-07-30 12:14   ` Trenton D. Adams
2001-07-30 12:20     ` Jonathan Larmour
2001-07-30 12:34       ` Trenton D. Adams
2001-07-30 12:42         ` Jonathan Larmour
2001-07-30 12:46           ` Trenton D. Adams
2001-07-30 12:57             ` Jonathan Larmour
2001-07-30 13:01               ` Trenton D. Adams
2001-07-30 13:44               ` Trenton D. Adams
2001-07-30 13:46                 ` Jonathan Larmour
2001-07-30 16:39                   ` [ECOS] RM7000 interrupt handling Chris Morrow
2001-07-31  5:53                     ` Hugo Tyson
2001-07-31  6:13                       ` Mark Salter
2001-07-31  7:17                         ` Robin Farine
2001-07-31  9:43                           ` Hugo Tyson
2001-07-31  9:59                             ` Robin Farine [this message]
2001-07-31 10:28                             ` Chris Morrow
2001-07-31 11:08                               ` Hugo Tyson
2001-08-02  6:32                           ` Hugo Tyson
2001-08-02  7:47                             ` Robin Farine
2001-08-02  8:08                               ` Hugo Tyson
2001-07-30 16:47       ` [ECOS] i386 TARGET network programming Fabrice Gautier
2001-07-31 14:33         ` Jonathan Larmour
2001-07-31 14:36           ` Jonathan Larmour
2001-07-31 14:44             ` Jonathan Larmour
2001-07-31 16:12               ` Fabrice Gautier
2001-07-31 17:49                 ` Jonathan Larmour
2001-07-30 13:22     ` Fabrice Gautier

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=86wv4pyqzv.fsf@halftrack.hq.acn-group.ch \
    --to=acnrf@dial.eunet.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=hmt@redhat.com \
    --cc=msalter@redhat.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).