Changeset f74e806d in rtems


Ignore:
Timestamp:
Jan 2, 2020, 10:30:33 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
93ccb728
Parents:
453bb4b
git-author:
Sebastian Huber <sebastian.huber@…> (01/02/20 10:30:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/02/20 10:35:46)
Message:

mpci: Fix blocking proxy status

Remove THREAD_STATUS_PROXY_BLOCKING and replace it with
STATUS_PROXY_BLOCKING.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/status.h

    r453bb4b rf74e806d  
    4040  STATUS_CLASSIC_NOT_OWNER_OF_RESOURCE = 23,
    4141  STATUS_CLASSIC_OBJECT_WAS_DELETED = 7,
     42  STATUS_CLASSIC_PROXY_BLOCKING = 29,
    4243  STATUS_CLASSIC_RESOURCE_IN_USE = 12,
    4344  STATUS_CLASSIC_SUCCESSFUL = 0,
     
    107108  STATUS_OBJECT_WAS_DELETED =
    108109    STATUS_BUILD( STATUS_CLASSIC_OBJECT_WAS_DELETED, EINVAL ),
     110  STATUS_PROXY_BLOCKING =
     111    STATUS_BUILD( STATUS_CLASSIC_PROXY_BLOCKING, EINVAL ),
    109112  STATUS_RESOURCE_IN_USE =
    110113    STATUS_BUILD( STATUS_CLASSIC_RESOURCE_IN_USE, EBUSY ),
  • cpukit/include/rtems/score/threadimpl.h

    r453bb4b rf74e806d  
    5151
    5252/**
    53  *  The following structure contains the information necessary to manage
    54  *  a thread which it is  waiting for a resource.
    55  */
    56 #define THREAD_STATUS_PROXY_BLOCKING 0x1111111
    57 
    58 /**
    5953 *  Self for the GNU Ada Run-Time
    6054 */
     
    10511045{
    10521046  return ( the_thread == NULL );
    1053 }
    1054 
    1055 /**
    1056  * @brief Checks if proxy is blocking.
    1057  *
    1058  * status which indicates that a proxy is blocking, and false otherwise.
    1059  *
    1060  * @param code The code for the verification.
    1061  *
    1062  * @retval true Status indicates that a proxy is blocking.
    1063  * @retval false Status indicates that a proxy is not blocking.
    1064  */
    1065 RTEMS_INLINE_ROUTINE bool _Thread_Is_proxy_blocking (
    1066   uint32_t   code
    1067 )
    1068 {
    1069   return (code == THREAD_STATUS_PROXY_BLOCKING);
    10701047}
    10711048
  • cpukit/score/src/threadmp.c

    r453bb4b rf74e806d  
    140140    source_tid = receive_packet->source_tid;
    141141
    142     executing->Wait.return_code = THREAD_STATUS_PROXY_BLOCKING;
     142    executing->Wait.return_code = STATUS_PROXY_BLOCKING;
    143143
    144144    the_proxy->receive_packet = receive_packet;
Note: See TracChangeset for help on using the changeset viewer.