forked from Imagelibrary/rtems
2001-01-08 Joel Sherrill <joel@OARcorp.com>
* src/rtemsInterrupt.cc: Allocated interrupt_table since since cannot be determined without CPU model information.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user