On 2014-04-17 01:20, Joel Sherrill wrote:
Hi

The jmr3904 simulator faults before the exception is generated.
RTEMS can't catch the exception and generate a fatal error.

Any thoughts?

*** BEGIN OF TEST SPFATAL 26 ***

Breakpoint 4, Init (arg=<optimized out>)
     at
../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal26/init.c:56
56      provoke_aligment_or_data_access_exception();
(gdb) s
provoke_aligment_or_data_access_exception ()
     at
../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal26/init.c:35
35      *(volatile uint64_t *) base;
(gdb) si
mips-core: 4 byte read to unmapped address 0x4 at 0x880002e8

Program received signal SIGBUS, Bus error.
provoke_aligment_or_data_access_exception ()
     at
../../../../../../../rtems/c/src/../../testsuites/sptests/spfatal26/init.c:35
35      *(volatile uint64_t *) base;


The simulator lacks support for this exception.  On SIS you get for example:

*** BEGIN OF TEST SPFATAL 26 ***
Memory exception at 80000000 (illegal address)

Breakpoint 2, _Terminate (the_source=RTEMS_FATAL_SOURCE_EXCEPTION, is_internal=false, the_error=33773240) at /home/sh/rtems-4.11/c/src/../../cpukit/score/src/interr.c:39
39        _ISR_Disable_without_giant( level );
(gdb) where
#0 _Terminate (the_source=RTEMS_FATAL_SOURCE_EXCEPTION, is_internal=false, the_error=33773240) at /home/sh/rtems-4.11/c/src/../../cpukit/score/src/interr.c:39 #1 0x020051c0 in rtems_fatal (source=RTEMS_FATAL_SOURCE_EXCEPTION, error=33773240) at /home/sh/rtems-4.11/c/src/../../cpukit/sapi/src/fatal2.c:34 #2 0x02002064 in bsp_spurious_handler (trap=265, isf=0x203a6a8) at /home/sh/rtems-4.11/c/src/lib/libbsp/sparc/erc32/startup/spurious.c:131 #3 0x02028370 in dont_fix_pil2 () at /home/sh/rtems-4.11/c/src/lib/libbsp/sparc/erc32/../../sparc/shared/irq_asm.S:464 #4 0x02028370 in dont_fix_pil2 () at /home/sh/rtems-4.11/c/src/lib/libbsp/sparc/erc32/../../sparc/shared/irq_asm.S:464

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to