This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Diff between VSR and Exception
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Ottawa Guy <ottawaguy81 at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 21 Nov 2003 11:08:22 +0000
- Subject: Re: [ECOS] Diff between VSR and Exception
- References: <20031118173709.87396.qmail@web13008.mail.yahoo.com>
Ottawa Guy <ottawaguy81@yahoo.com> writes:
> Hi,
> ECOS has three types of vectors
>
> CYGNUM_HAL_VSR_XX
> CYGNUM_HAL_INTERRUPT
> CYGNUM_HAL_EXCEPTION
>
> CYGNUM_HAL_INTERRUPT is used for external interrupt.
> However CYGNUM_HAL_VSR_XX,CYGNUM_HAL_EXCEPTION sounds
> like processor interrupt. Eg MemMiss alignment, div
> by zeor, etc.
>
> What are the diff between CYGNUM_HAL_VSR_XX,
> CYGNUM_HAL_EXCEPTION vectors.
The CYGNUM_HAL_EXCEPTION_XXX names are standard names for various
types of exception. The CYGNUM_HAL_VSR_XX names are what the hardware
actually provides. In hal_intr.h or somewhere similar the
CYGNUM_HAL_EXCEPTION_XXX names are mapped on to the CYGNUM_HAL_VSR_XX
names. Then, if a portable piece of code wants to known whether a
given kind of exception is available it can test the
CYGNUM_HAL_EXCEPTION_XXX definition and use it to reference the
exception if it needs to. See the kernel except1 and kexcept1 tests
for an example.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss