summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-08 18:12:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-08 18:12:27 +0000
commitf692d7e081d88e0d44d17db4559573051565f252 (patch)
tree93f0d4bdfed2c668c0197f1580851819bc9c9205
parentb03f4f2c9de2ff567c9eae5acb7090e26cf5de49 (diff)
downloadrtems-f692d7e081d88e0d44d17db4559573051565f252.tar.bz2
2001-01-08 Joel Sherrill <joel@OARcorp.com>
* src/rtemsInterrupt.cc: Allocated interrupt_table since since cannot be determined without CPU model information.
-rw-r--r--c/src/librtems++/ChangeLog5
-rw-r--r--c/src/librtems++/src/rtemsInterrupt.cc6
2 files changed, 10 insertions, 1 deletions
diff --git a/c/src/librtems++/ChangeLog b/c/src/librtems++/ChangeLog
index 77a82e8aed..ba73e26575 100644
--- a/c/src/librtems++/ChangeLog
+++ b/c/src/librtems++/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-08 Joel Sherrill <joel@OARcorp.com>
+
+ * src/rtemsInterrupt.cc: Allocated interrupt_table since since
+ cannot be determined without CPU model information.
+
2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS.
diff --git a/c/src/librtems++/src/rtemsInterrupt.cc b/c/src/librtems++/src/rtemsInterrupt.cc
index 4cd5d9afa9..923a9fd350 100644
--- a/c/src/librtems++/src/rtemsInterrupt.cc
+++ b/c/src/librtems++/src/rtemsInterrupt.cc
@@ -27,7 +27,7 @@
object
*/
-static rtemsInterrupt *interrupt_table[CPU_INTERRUPT_NUMBER_OF_VECTORS];
+static rtemsInterrupt **interrupt_table;
// has the table been initialised
static bool initialised = false;
@@ -36,6 +36,8 @@ static bool initialised = false;
rtemsInterrupt
*/
+#include <stdlib.h> /* for malloc */
+
rtemsInterrupt::rtemsInterrupt()
: vector(0),
caught(false),
@@ -44,6 +46,8 @@ rtemsInterrupt::rtemsInterrupt()
{
if (!initialised)
{
+ interrupt_table = (rtemsInterrupt **)
+ malloc(sizeof(rtemsInterrupt *) * CPU_INTERRUPT_NUMBER_OF_VECTORS);
for (rtems_vector_number vec = 0;
vec < CPU_INTERRUPT_NUMBER_OF_VECTORS;
vec++)