From: Jonathan Larmour <jlarmour@redhat.com>
To: MJLiu@mxic.com.tw
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Questions about Interrupt and Handler?
Date: Tue, 17 Jul 2001 08:05:00 -0000 [thread overview]
Message-ID: <3B54542F.96138ECA@redhat.com> (raw)
In-Reply-To: <OF2A5C9F61.423DB7DE-ON48256A8C.00252291@MXIC.COM.TW>
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/
next prev parent reply other threads:[~2001-07-17 8:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-17 0:24 MJLiu
2001-07-17 8:05 ` Jonathan Larmour [this message]
2001-07-17 8:15 ` Gary Thomas
2001-07-17 8:16 ` Gary Thomas
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=3B54542F.96138ECA@redhat.com \
--to=jlarmour@redhat.com \
--cc=MJLiu@mxic.com.tw \
--cc=ecos-discuss@sources.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).