This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: exception handlers... how to use?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Stefan Sommerfeld" <zerocom at cs dot tu-berlin dot de>
- Cc: <ecos-discuss at sourceware dot org>
- Date: 22 Nov 2006 10:46:31 +0000
- Subject: Re: [ECOS] exception handlers... how to use?
- References: <000801c70dc6$fc58c430$3201a8c0@deltaflyer>
"Stefan Sommerfeld" <zerocom@cs.tu-berlin.de> writes:
> Hi,
>
> I have eCos running on a MIPS processor and I want to install a exception
> handler which prints out some information. I don't use gdb stubs.
>
> I tried to install some handlers, but they did not get called. The jump
> table (vsr_table) is still filled with ROM (bootloader) addresses. I enable
> the option 'use rom monitor'. I guess this could be a problem. disable it,
> let the system hang on bootup (maybe a cache problem, i still need to do
> some research here).
>
> Could any give me some hints about the needed option in eCos to make the
> exception handler working?
You need to plant the VSR from the RAM executable into the VSR
table. You can either do this explicitly using HAL_VSR_SET() or use
HAL_VSR_SET_TO_ECOS_HANDLER(), which is designed to do just this.
Take a look at the except1 and kexcept1 kernel 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://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss