* [ECOS] Questions about Interrupt and Handler?
@ 2001-07-17 0:24 MJLiu
2001-07-17 8:05 ` Jonathan Larmour
0 siblings, 1 reply; 4+ messages in thread
From: MJLiu @ 2001-07-17 0:24 UTC (permalink / raw)
To: ecos-discuss
Dear Sir :
I am using eCos and ARM7TDMI, and if it isn't too much trouble, may I have
the following queries:
1. As we know, the relationship between exception type and its respective
vector address in ARM7TDMI is as follows:
vector address exception type
0x00 Reset
0x04 Undefined Instruction
0x08 SWI
0x0C Prefetch Abort
0x10 Data Abort
0x14 Reserved
0x18 IRQ
0x1C FIQ
And as we know, in eCos, there exist the mechanism of interrupts and
exceptions, and there are distinct spaces for exception and interrupt
vectors.
My question is that which exception vector addresses of ARM7TDMI are for
exception vectors in eCos, and which are for interrupt vectors in eCos?
2. I need to program exception and interrupt handlers for ARM7TDMI. So, are
there any source code examples for exception and interrupt handler
installation and manipulation?
3. Are there any detailed documents and source code examples for VSR
(vector service routine) manipulation?
In eCos documents, it seems that they do not mention how to install
VSRs. Would someone tell me how to make it?
Would someone give me the answers for the questions above.
Many thanks in advance!!
Regards,
Liu Ming-Jun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Questions about Interrupt and Handler?
2001-07-17 0:24 [ECOS] Questions about Interrupt and Handler? MJLiu
@ 2001-07-17 8:05 ` Jonathan Larmour
2001-07-17 8:15 ` Gary Thomas
2001-07-17 8:16 ` Gary Thomas
0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Larmour @ 2001-07-17 8:05 UTC (permalink / raw)
To: MJLiu; +Cc: ecos-discuss
MJLiu@mxic.com.tw wrote:
>
> 1. As we know, the relationship between exception type and its respective
> vector address in ARM7TDMI is as follows:
>
> vector address exception type
> 0x00 Reset
> 0x04 Undefined Instruction
> 0x08 SWI
> 0x0C Prefetch Abort
> 0x10 Data Abort
> 0x14 Reserved
> 0x18 IRQ
> 0x1C FIQ
>
> And as we know, in eCos, there exist the mechanism of interrupts and
> exceptions, and there are distinct spaces for exception and interrupt
> vectors.
>
> My question is that which exception vector addresses of ARM7TDMI are for
> exception vectors in eCos, and which are for interrupt vectors in eCos?
All are exceptions except IRQ and FIQ which are interrupts (despite the
indication otherwise in hal/arm/arch/current/inclued/hal_intr.h). Although
Reset isn't really an exception anyway.
> 2. I need to program exception and interrupt handlers for ARM7TDMI. So, are
> there any source code examples for exception and interrupt handler
> installation and manipulation?
Most device drivers do.
> 3. Are there any detailed documents and source code examples for VSR
> (vector service routine) manipulation?
> In eCos documents, it seems that they do not mention how to install
> VSRs. Would someone tell me how to make it?
http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.9.html#pgfId=1023460
It's an assembler routine. Examples are the default routines in vectors.S
in hal/arm/arch
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Questions about Interrupt and Handler?
2001-07-17 8:05 ` Jonathan Larmour
@ 2001-07-17 8:15 ` Gary Thomas
2001-07-17 8:16 ` Gary Thomas
1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2001-07-17 8:15 UTC (permalink / raw)
To: Jonathan Larmour; +Cc: ecos-discuss, MJLiu
On 17-Jul-2001 Jonathan Larmour wrote:
>> 3. Are there any detailed documents and source code examples for VSR
>> (vector service routine) manipulation?
>> In eCos documents, it seems that they do not mention how to install
>> VSRs. Would someone tell me how to make it?
>
> http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.9.html#pgfId=1023460
>
> It's an assembler routine. Examples are the default routines in vectors.S
> in hal/arm/arch
Another example is in hal/arm/edb7xxx/current/misc - look at the i2s_audio...
files. This is a program which installs a VSR to handle the FIQ from the
audio processor.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Questions about Interrupt and Handler?
2001-07-17 8:05 ` Jonathan Larmour
2001-07-17 8:15 ` Gary Thomas
@ 2001-07-17 8:16 ` Gary Thomas
1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2001-07-17 8:16 UTC (permalink / raw)
To: Jonathan Larmour; +Cc: ecos-discuss, MJLiu
On 17-Jul-2001 Jonathan Larmour wrote:
>> 3. Are there any detailed documents and source code examples for VSR
>> (vector service routine) manipulation?
>> In eCos documents, it seems that they do not mention how to install
>> VSRs. Would someone tell me how to make it?
>
Another thing: it is a rare program indeed that needs to install it's
own VSR, especially on the ARM. Most of the time all you'll need is to
install an interrupt handler (ISR/DSR).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-07-17 8:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17 0:24 [ECOS] Questions about Interrupt and Handler? MJLiu
2001-07-17 8:05 ` Jonathan Larmour
2001-07-17 8:15 ` Gary Thomas
2001-07-17 8:16 ` Gary Thomas
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).