Changeset 33c31af7 in rtems


Ignore:
Timestamp:
Aug 9, 2001, 8:48:01 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a781bbff
Parents:
00815403
Message:

2001-08-09 Joel Sherrill <joel@…>

  • src/msgqsubmit.c: Unblocking message queue operations should NOT use _Thread_Executing for return status since it is permissible to invoke message send operations from an ISR. This was reported by Suvrat Gupta <suvrat@…>.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/ChangeLog

    r00815403 r33c31af7  
     12001-08-09      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/msgqsubmit.c: Unblocking message queue operations should
     4        NOT use _Thread_Executing for return status since it is permissible
     5        to invoke message send operations from an ISR.  This was reported
     6        by Suvrat Gupta <suvrat@utstar.com>.
     7
    182001-03-26      Zoltan Kocsi <zoltan@bendor.com.au>
    29
  • c/src/exec/rtems/src/msgqsubmit.c

    r00815403 r33c31af7  
    6868  register Message_queue_Control  *the_message_queue;
    6969  Objects_Locations                location;
     70  CORE_message_queue_Status        msg_status;
    7071
    7172  the_message_queue = _Message_queue_Get( id, &location );
     
    104105      switch ( submit_type ) {
    105106        case MESSAGE_QUEUE_SEND_REQUEST:
    106           _CORE_message_queue_Send(
     107          msg_status = _CORE_message_queue_Send(
    107108            &the_message_queue->message_queue,
    108109            buffer,
     
    115116          break;
    116117        case MESSAGE_QUEUE_URGENT_REQUEST:
    117           _CORE_message_queue_Urgent(
     118          msg_status = _CORE_message_queue_Urgent(
    118119            &the_message_queue->message_queue,
    119120            buffer,
     
    130131
    131132      _Thread_Enable_dispatch();
    132       return _Message_queue_Translate_core_message_queue_return_code(
    133         _Thread_Executing->Wait.return_code
    134       );
     133      return
     134        _Message_queue_Translate_core_message_queue_return_code( msg_status );
    135135         
    136136  }
  • cpukit/rtems/ChangeLog

    r00815403 r33c31af7  
     12001-08-09      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/msgqsubmit.c: Unblocking message queue operations should
     4        NOT use _Thread_Executing for return status since it is permissible
     5        to invoke message send operations from an ISR.  This was reported
     6        by Suvrat Gupta <suvrat@utstar.com>.
     7
    182001-03-26      Zoltan Kocsi <zoltan@bendor.com.au>
    29
  • cpukit/rtems/src/msgqsubmit.c

    r00815403 r33c31af7  
    6868  register Message_queue_Control  *the_message_queue;
    6969  Objects_Locations                location;
     70  CORE_message_queue_Status        msg_status;
    7071
    7172  the_message_queue = _Message_queue_Get( id, &location );
     
    104105      switch ( submit_type ) {
    105106        case MESSAGE_QUEUE_SEND_REQUEST:
    106           _CORE_message_queue_Send(
     107          msg_status = _CORE_message_queue_Send(
    107108            &the_message_queue->message_queue,
    108109            buffer,
     
    115116          break;
    116117        case MESSAGE_QUEUE_URGENT_REQUEST:
    117           _CORE_message_queue_Urgent(
     118          msg_status = _CORE_message_queue_Urgent(
    118119            &the_message_queue->message_queue,
    119120            buffer,
     
    130131
    131132      _Thread_Enable_dispatch();
    132       return _Message_queue_Translate_core_message_queue_return_code(
    133         _Thread_Executing->Wait.return_code
    134       );
     133      return
     134        _Message_queue_Translate_core_message_queue_return_code( msg_status );
    135135         
    136136  }
Note: See TracChangeset for help on using the changeset viewer.