This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: NIOS2 kernel tests failing
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Grant Edwards <grante at visi dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 02 Jan 2007 10:54:11 +0000
- Subject: Re: [ECOS] NIOS2 kernel tests failing
- References: <emschl$7ve$1@sea.gmane.org>
Grant Edwards <grante@visi.com> writes:
> I've been unable to get all of the kernel tests to pass on a
> NIOS2 platform. Four fail consistently:
>
> except1.cxx
> kexcept1.cxx
> kmutex3.c
> mutex3.c
>
> I presume the first two are expected failures because the
> -fno-exceptions flag is used during compilation.
The -fno-exceptions flag turns off C++ exceptions. These tests are
testing hardware exceptions, a totally different thing.
The programs attempt to provoke a hardware exception by first trying
to generate an alignment/bus error/memory management exception by
poking memory; if that fails it tries a divide by zero. If none of
these work, then the test will fail.
I don't know what exceptions the NIOS2 support, so either there are no
suitable exceptions supported, or there is something wrong in the HAL
level code that should deliver the exception to the kernel. Or maybe
something needs to be done in the hardware configuration to enable it.
> But, I don't
> know of any reason why the mutex3 tests shouldn't work.
I cannot see any reason for the mutex3 tests to fail. The fact that
they run through several permutations before failing is odd. Perhaps
it is a stack size or some other memory corruption issue. That is all
I can think it might be at present.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
http://www.ecoscentric.com/legal Legal info, address and number
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss