This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: How to write C code for interrupt handler
- From: Gary Thomas <gary at chez-thomas dot org>
- To: Hiroyasu Shimizu <h_shimizu at digiark dot co dot jp>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 18 Jun 2002 22:25:53 -0600
- Subject: RE: [ECOS] How to write C code for interrupt handler
- References: <KBEJJOKEDPHEOIPKJCECMEPACEAA.h_shimizu@digiark.co.jp>
On Tue, 2002-06-18 at 21:41, Hiroyasu Shimizu wrote:
> This is a GCC issue not eCos.
>
> Unfortunately, current GCC port for ARM dose not support to compile
> functions for interrupt calls as shown in H8/300 port.
It's also not necessary. The eCos interrupt model uses three levels
of interrupt processing:
VSR - the first [lowest] level of interrupt handling. Typically
written in assembly as part of the HAL. Normally this is
quite platform independent.
ISR & DSR - these are the interrupt handlers per se, normally
written in "C" and are quite platform dependent.
Read the eCos documentation and samples for examples. There is
almost never a reason to write the ISR/DSR code in assembly code.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss