Changeset 02e4dcd in rtems


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

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

  • src/snd_mbx.c, src/tsnd_mbf.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:
6 edited

Legend:

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

    ra781bbff r02e4dcd  
     12001-08-09      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/snd_mbx.c, src/tsnd_mbf.c: Unblocking message queue operations
     4        should NOT use _Thread_Executing for return status since it is
     5        permissible to invoke message send operations from an ISR.  This was
     6        reported by Suvrat Gupta <suvrat@utstar.com>.
     7
    182001-04-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • c/src/exec/itron/src/snd_mbx.c

    ra781bbff r02e4dcd  
    3434  unsigned32                       message_priority;
    3535  void                            *message_contents;
     36  CORE_message_queue_Status        msg_status;
    3637
    3738  if ( !pk_msg )
     
    5152
    5253      message_contents = pk_msg;
    53       _CORE_message_queue_Submit(
     54      msg_status = _CORE_message_queue_Submit(
    5455        &the_mailbox->message_queue,
    5556        &message_contents,
     
    6566
    6667  _ITRON_return_errorno(
    67      _ITRON_Mailbox_Translate_core_message_queue_return_code(
    68           _Thread_Executing->Wait.return_code
    69      )
     68     _ITRON_Mailbox_Translate_core_message_queue_return_code( msg_status )
    7069  );
    7170}
  • c/src/exec/itron/src/tsnd_mbf.c

    ra781bbff r02e4dcd  
    3838  Watchdog_Interval              interval;
    3939  boolean                        wait;
     40  CORE_message_queue_Status      msg_status;
    4041
    4142  if (msgsz <= 0 || !msg)
     
    6263    case OBJECTS_LOCAL:
    6364      /* XXX Submit needs to take into account blocking */
    64       _CORE_message_queue_Submit(
     65      msg_status = _CORE_message_queue_Submit(
    6566        &the_message_buffer->message_queue,
    6667        msg,
     
    7475      _Thread_Enable_dispatch();
    7576      return _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
    76           _Thread_Executing->Wait.return_code
     77          msg_status
    7778      );
    7879    }
  • cpukit/itron/ChangeLog

    ra781bbff r02e4dcd  
     12001-08-09      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/snd_mbx.c, src/tsnd_mbf.c: Unblocking message queue operations
     4        should NOT use _Thread_Executing for return status since it is
     5        permissible to invoke message send operations from an ISR.  This was
     6        reported by Suvrat Gupta <suvrat@utstar.com>.
     7
    182001-04-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • cpukit/itron/src/snd_mbx.c

    ra781bbff r02e4dcd  
    3434  unsigned32                       message_priority;
    3535  void                            *message_contents;
     36  CORE_message_queue_Status        msg_status;
    3637
    3738  if ( !pk_msg )
     
    5152
    5253      message_contents = pk_msg;
    53       _CORE_message_queue_Submit(
     54      msg_status = _CORE_message_queue_Submit(
    5455        &the_mailbox->message_queue,
    5556        &message_contents,
     
    6566
    6667  _ITRON_return_errorno(
    67      _ITRON_Mailbox_Translate_core_message_queue_return_code(
    68           _Thread_Executing->Wait.return_code
    69      )
     68     _ITRON_Mailbox_Translate_core_message_queue_return_code( msg_status )
    7069  );
    7170}
  • cpukit/itron/src/tsnd_mbf.c

    ra781bbff r02e4dcd  
    3838  Watchdog_Interval              interval;
    3939  boolean                        wait;
     40  CORE_message_queue_Status      msg_status;
    4041
    4142  if (msgsz <= 0 || !msg)
     
    6263    case OBJECTS_LOCAL:
    6364      /* XXX Submit needs to take into account blocking */
    64       _CORE_message_queue_Submit(
     65      msg_status = _CORE_message_queue_Submit(
    6566        &the_message_buffer->message_queue,
    6667        msg,
     
    7475      _Thread_Enable_dispatch();
    7576      return _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
    76           _Thread_Executing->Wait.return_code
     77          msg_status
    7778      );
    7879    }
Note: See TracChangeset for help on using the changeset viewer.