summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-19 16:56:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-19 16:56:42 +0000
commit7d18fdc120ae0c8c9ba0e34bdcea89e677671b2d (patch)
tree9d16f98171fa13e6efd90a0919a13722fdfbbed5 /c/src/lib/libcpu
parent493fa933fe4470d77e1a9f68d12962e9a7fdfe8a (diff)
downloadrtems-7d18fdc120ae0c8c9ba0e34bdcea89e677671b2d.tar.bz2
2000-12-19 Joel Sherrill <joel@OARcorp.com>
* tx39/vectorisrs/vectorisrs.c: Modified to have default exception vector handler. This should be in a separate file so the BSP can easily override it.
Diffstat (limited to 'c/src/lib/libcpu')
-rw-r--r--c/src/lib/libcpu/mips/ChangeLog6
-rw-r--r--c/src/lib/libcpu/mips/tx39/vectorisrs/vectorisrs.c13
2 files changed, 18 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/mips/ChangeLog b/c/src/lib/libcpu/mips/ChangeLog
index 298e7c230e..c1e87044a4 100644
--- a/c/src/lib/libcpu/mips/ChangeLog
+++ b/c/src/lib/libcpu/mips/ChangeLog
@@ -1,3 +1,9 @@
+2000-12-19 Joel Sherrill <joel@OARcorp.com>
+
+ * tx39/vectorisrs/vectorisrs.c: Modified to have default exception
+ vector handler. This should be in a separate file so the BSP can
+ easily override it.
+
2000-12-13 Joel Sherrill <joel@OARcorp.com>
* configure.in: Added new directories.
diff --git a/c/src/lib/libcpu/mips/tx39/vectorisrs/vectorisrs.c b/c/src/lib/libcpu/mips/tx39/vectorisrs/vectorisrs.c
index 15a4753123..db31d751e5 100644
--- a/c/src/lib/libcpu/mips/tx39/vectorisrs/vectorisrs.c
+++ b/c/src/lib/libcpu/mips/tx39/vectorisrs/vectorisrs.c
@@ -12,7 +12,18 @@
} while (0)
#define CALL_ISR(_vector) \
- (_ISR_Vector_table[_vector])(_vector);
+ do { \
+ if ( _ISR_Vector_table[_vector] ) \
+ (_ISR_Vector_table[_vector])(_vector); \
+ else \
+ mips_default_exception(_vector); \
+ } while (0)
+
+void mips_default_exception( int vector )
+{
+ printk( "Unhandled exception %d\n", vector );
+ rtems_fatal_error_occurred(1);
+}
void mips_vector_isr_handlers( void )
{