Changeset 2be0342 in rtems


Ignore:
Timestamp:
Mar 20, 2015, 3:47:14 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
6849e53
Parents:
52a34a7
git-author:
Joel Sherrill <joel.sherrill@…> (03/20/15 15:47:14)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:32)
Message:

sptests/sp13/system.h: Fine tune message buffer configuration to avoid integer overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp13/system.h

    r52a34a7 r2be0342  
    4141);
    4242
     43/* global variables */
     44
     45TEST_EXTERN rtems_id   Task_id[ 4 ];         /* array of task ids */
     46TEST_EXTERN rtems_name Task_name[ 4 ];       /* array of task names */
     47
     48TEST_EXTERN rtems_id   Queue_id[ 4 ];        /* array of queue ids */
     49TEST_EXTERN rtems_name Queue_name[ 4 ];      /* array of queue names */
     50
     51/* test configuration */
     52
     53#define MESSAGE_SIZE (sizeof(long) * 4)  /* must be multiple of sizeof(long) */
     54
    4355/* configuration information */
    4456
     
    5466#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    5567
    56 #define CONFIGURE_MESSAGE_BUFFER_MEMORY     (32 * 1024)
     68#define CONFIGURE_MESSAGE_BUFFER_MEMORY \
     69   CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 100, MESSAGE_SIZE ) + \
     70   CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 10, MESSAGE_SIZE ) + \
     71   CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 100, MESSAGE_SIZE )
     72
    5773#define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
    5874
    5975#include <rtems/confdefs.h>
    6076
    61 /* global variables */
    62 
    63 TEST_EXTERN rtems_id   Task_id[ 4 ];         /* array of task ids */
    64 TEST_EXTERN rtems_name Task_name[ 4 ];       /* array of task names */
    65 
    66 TEST_EXTERN rtems_id   Queue_id[ 4 ];        /* array of queue ids */
    67 TEST_EXTERN rtems_name Queue_name[ 4 ];      /* array of queue names */
    68 
    69 /* test configuration */
    70 
    71 #define MESSAGE_SIZE (sizeof(long) * 4)  /* must be multiple of sizeof(long) */
    72 
    7377/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.