diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-04-22 16:49:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-04-22 16:49:25 +0000 |
commit | f5674938bb6008a62223a71c97a4c7ce4c660ddc (patch) | |
tree | 348606b22e999260b549e3b4f9106c9a08f44092 /c/src/lib/libbsp/shmdr/init.c | |
parent | thread.c: added support for optional user provided stack allocator (diff) | |
download | rtems-f5674938bb6008a62223a71c97a4c7ce4c660ddc.tar.bz2 |
Fixed so now supports more than 16 nodes. Tested for up to 24 nodes
by Tony Bennett. Information table is now malloc'ed.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/shmdr/init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shmdr/init.c b/c/src/lib/libbsp/shmdr/init.c index 8b62d6fb46..a553e4ff9b 100644 --- a/c/src/lib/libbsp/shmdr/init.c +++ b/c/src/lib/libbsp/shmdr/init.c @@ -24,6 +24,8 @@ #include <shm.h> #include <string.h> /* memset() */ +#include <stdlib.h> /* malloc() */ +#include <assert.h> /* * User extension to install MPCI_Fatal as a fatal error @@ -53,6 +55,13 @@ rtems_mpci_entry Shm_Initialization( void ) Shm_Get_configuration( Shm_Local_node, &Shm_Configuration ); + Shm_Interrupt_table = (Shm_Interrupt_information *) malloc( + sizeof(Shm_Interrupt_information) * (Shm_Maximum_nodes + 1) + ); + + assert( Shm_Interrupt_table ); + + Shm_Receive_message_count = 0; Shm_Null_message_count = 0; Shm_Interrupt_count = 0; |