This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
mips architecture: vsr for debug and NMI
- From: Jerome Souquieres <jerome dot souquieres at kis dot fr>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 07 Dec 2004 18:17:28 +0100
- Subject: [ECOS] mips architecture: vsr for debug and NMI
- References: <1102414329.12348.ezmlm@ecos.sourceware.org>
Hi everyone,
I have a remark/question about the handling of debug and NMI vectors for MIPS architecture in eCos:
In hal\mips\arch\v2_0\src\vectors.S, the "debug_vector" and "__nmi_entry" functions happen to call Vector Service
Routines #32 and #34 respectively. However, a look at hal\mips\arch\v2_0\include\hal_intr.h reveals that these vectors
are neved defined, and are greater than CYGNUM_HAL_VSR_MAX. To me, this means that if a debug or NMI exception occurs,
the VSR retrieved from hal_vsr_table[CYGNUM_HAL_VSR_MAX] will be garbage (index overflow). Is there something I didn't
understand ? Or maybe this is debugging code that was left there but is no longer operational ?
There also seems to be a relationship with CYG_HAL_MIPS_VSR_TABLE_DEFINED but I do not understand yet completely when
this symbol is defined.
Thanks for your help,
...Jerome Souquieres...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss