Changeset cdf42cd9 in rtems


Ignore:
Timestamp:
Sep 5, 2008, 9:37:20 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
dd1a460e
Parents:
f2b169a
Message:

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

  • score/src/objectgetinfo.c: Correct for multiprocessor systems when all object instances within a particular class are remote.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf2b169a rcdf42cd9  
     12008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * score/src/objectgetinfo.c: Correct for multiprocessor systems when
     4        all object instances within a particular class are remote.
     5
    162008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/score/src/objectgetinfo.c

    rf2b169a rcdf42cd9  
    3434
    3535  the_class_api_maximum = _Objects_API_maximum_class( the_api );
    36   if ( the_class_api_maximum < 0 || the_class > (uint32_t) the_class_api_maximum )
     36  if ( the_class_api_maximum < 0 ||
     37       the_class > (uint32_t) the_class_api_maximum )
    3738    return NULL;
    3839
     
    4445    return NULL;
    4546
    46   if ( info->maximum == 0 )
    47     return NULL;
     47  /*
     48   *  In a multprocessing configuration, we may access remote objects.
     49   *  Thus we may have 0 local instances and still have a valid object
     50   *  pointer.
     51   */
     52  #if !defined(RTEMS_MULTIPROCESSING)
     53    if ( info->maximum == 0 )
     54      return NULL;
     55  #endif
    4856
    4957  return info;
Note: See TracChangeset for help on using the changeset viewer.