diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-19 09:07:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-25 11:41:11 +0200 |
commit | 600d88dfd7c245a4e97d297bd208d568f8bae16b (patch) | |
tree | 1d2b6b87a7934ca0a5f6a9a702577fb6ae59569c /c/src/lib/libbsp/sparc/leon3/startup/spurious.c | |
parent | sparc: Rename SPARC_USE_SAFE_FP_SUPPORT (diff) | |
download | rtems-600d88dfd7c245a4e97d297bd208d568f8bae16b.tar.bz2 |
INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT
Add new fatal error INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT.
Update #3077.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/startup/spurious.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/spurious.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c index 647ecd0e0d..88d977d603 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c +++ b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c @@ -119,6 +119,10 @@ static rtems_isr bsp_spurious_handler( .isf = isf }; + if ( SPARC_REAL_TRAP_NUMBER( trap ) == 4 ) { + _Internal_error( INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT ); + } + rtems_fatal( RTEMS_FATAL_SOURCE_EXCEPTION, (rtems_fatal_code) &frame |