Changeset 52efd7d in rtems


Ignore:
Timestamp:
Sep 26, 2008, 6:37:12 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
d6b8d5c
Parents:
44a2f5d
Message:

2008-09-26 Joel Sherrill <joel.sherrill@…>

PR 1316/cpukit

  • score/src/coremsgbroadcast.c: Give error when message is too large like when sending a message. This was the documented behavior.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r44a2f5d r52efd7d  
     12008-09-26      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1316/cpukit
     4        * score/src/coremsgbroadcast.c: Give error when message is too large
     5        like when sending a message. This was the documented behavior.
     6
    172008-09-16      Gene Smith <gene.smith@siemens.com>
    28
  • cpukit/score/src/coremsgbroadcast.c

    r44a2f5d r52efd7d  
    6767  uint32_t                 number_broadcasted;
    6868  Thread_Wait_information *waitp;
    69   uint32_t                 constrained_size;
     69
     70  if ( size > the_message_queue->maximum_message_size ) {
     71    return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;
     72  }
    7073
    7174  /*
     
    9396    number_broadcasted += 1;
    9497
    95     constrained_size = size;
    96     if ( size > the_message_queue->maximum_message_size )
    97         constrained_size = the_message_queue->maximum_message_size;
    98 
    9998    _CORE_message_queue_Copy_buffer(
    10099      buffer,
    101100      waitp->return_argument,
    102       constrained_size
     101      size
    103102    );
    104103
Note: See TracChangeset for help on using the changeset viewer.