This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Interrupts on PC
- From: Nick Garnett <nickg at redhat dot com>
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Cc: Rafael Rodríguez Velilla <rrv at tid dot es>,ecos <ecos-discuss at sources dot redhat dot com>
- Date: 04 Apr 2002 10:31:34 +0100
- Subject: Re: [ECOS] Interrupts on PC
- References: <3CA8082C.C6508A1E@tid.es> <3CABEA70.7987A3E@redhat.com>
Jonathan Larmour <jlarmour@redhat.com> writes:
> Rafael Rodríguez Velilla wrote:
> >
> > I'm experimenting a little with the PC target and I have a question.
> > I 'd want to install an ISR for a hardware IRQ, which vector should I
> > use? The number of the hardware vector (for example, 1 for the keyboard)
> > or the number in the vector table (9 for the keyboard)?
>
> The number in the vector table.
>
More specifically, use the values defined in pcmb_intr.h, which is
automatically included by hal_intr.h. The mapping of external
interrupts to vectors in eCos does not match the mapping used by DOS.
--
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss