Changeset f5674938 in rtems


Ignore:
Timestamp:
Apr 22, 1996, 4:49:25 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
34f3d17
Parents:
8faca06
Message:

Fixed so now supports more than 16 nodes. Tested for up to 24 nodes
by Tony Bennett. Information table is now malloc'ed.

Location:
c/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shmdr/init.c

    r8faca06 rf5674938  
    2525
    2626#include <string.h>    /* memset() */
     27#include <stdlib.h>    /* malloc() */
     28#include <assert.h>
    2729
    2830/*
     
    5456  Shm_Get_configuration( Shm_Local_node, &Shm_Configuration );
    5557
     58  Shm_Interrupt_table = (Shm_Interrupt_information *) malloc(
     59    sizeof(Shm_Interrupt_information) * (Shm_Maximum_nodes + 1)
     60  );
     61
     62  assert( Shm_Interrupt_table );
     63
     64
    5665  Shm_Receive_message_count = 0;
    5766  Shm_Null_message_count    = 0;
  • c/src/lib/libbsp/shmdr/shm.h

    r8faca06 rf5674938  
    431431
    432432SHM_EXTERN shm_config_table             *Shm_Configuration;
    433 SHM_EXTERN Shm_Interrupt_information     Shm_Interrupt_table[16];
     433SHM_EXTERN Shm_Interrupt_information    *Shm_Interrupt_table;
    434434SHM_EXTERN Shm_Node_status_control      *Shm_Node_statuses;
    435435SHM_EXTERN Shm_Locked_queue_Control     *Shm_Locked_queues;
  • c/src/lib/libbsp/shmdr/shm_driver.h

    r8faca06 rf5674938  
    431431
    432432SHM_EXTERN shm_config_table             *Shm_Configuration;
    433 SHM_EXTERN Shm_Interrupt_information     Shm_Interrupt_table[16];
     433SHM_EXTERN Shm_Interrupt_information    *Shm_Interrupt_table;
    434434SHM_EXTERN Shm_Node_status_control      *Shm_Node_statuses;
    435435SHM_EXTERN Shm_Locked_queue_Control     *Shm_Locked_queues;
  • c/src/libchip/shmdr/init.c

    r8faca06 rf5674938  
    2525
    2626#include <string.h>    /* memset() */
     27#include <stdlib.h>    /* malloc() */
     28#include <assert.h>
    2729
    2830/*
     
    5456  Shm_Get_configuration( Shm_Local_node, &Shm_Configuration );
    5557
     58  Shm_Interrupt_table = (Shm_Interrupt_information *) malloc(
     59    sizeof(Shm_Interrupt_information) * (Shm_Maximum_nodes + 1)
     60  );
     61
     62  assert( Shm_Interrupt_table );
     63
     64
    5665  Shm_Receive_message_count = 0;
    5766  Shm_Null_message_count    = 0;
  • c/src/libchip/shmdr/shm_driver.h

    r8faca06 rf5674938  
    431431
    432432SHM_EXTERN shm_config_table             *Shm_Configuration;
    433 SHM_EXTERN Shm_Interrupt_information     Shm_Interrupt_table[16];
     433SHM_EXTERN Shm_Interrupt_information    *Shm_Interrupt_table;
    434434SHM_EXTERN Shm_Node_status_control      *Shm_Node_statuses;
    435435SHM_EXTERN Shm_Locked_queue_Control     *Shm_Locked_queues;
Note: See TracChangeset for help on using the changeset viewer.