Changeset c31c15c in rtems


Ignore:
Timestamp:
Nov 7, 2001, 10:42:04 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4afc28ad
Parents:
850f87e
Message:

2001-11-07 Joel Sherrill <joel@…>

Reported by Todor.Todorov@… and tracked as PR36.

  • include/rtems/score/object.h: Added prototype for _Objects_Get_by_index().
  • src/objectget.c, src/objectgetisr.c: Corrected procedure for getting index from Id so it is correct and optimal for both single and multiprocessor configurations.
Files:
8 edited

Legend:

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

    r850f87e rc31c15c  
     12001-11-07      Joel Sherrill <joel@OARcorp.com>
     2
     3        Reported by Todor.Todorov@barco.com and tracked as PR36.
     4        * include/rtems/score/object.h: Added prototype for
     5        _Objects_Get_by_index().
     6        * src/objectget.c, src/objectgetisr.c: Corrected procedure for
     7        getting index from Id so it is correct and optimal for both single
     8        and multiprocessor configurations.
    19
    2102001-10-22      Joel Sherrill <joel@OARcorp.com>
  • c/src/exec/score/include/rtems/score/object.h

    r850f87e rc31c15c  
    455455);
    456456
     457Objects_Control *_Objects_Get_by_index (
     458  Objects_Information *information,
     459  Objects_Id           id,
     460  Objects_Locations   *location
     461);
    457462/*
    458463 *  _Objects_Get_next
  • c/src/exec/score/src/objectget.c

    r850f87e rc31c15c  
    5454  unsigned32       index;
    5555
     56#if defined(RTEMS_MULTIPROCESSING)
     57  index = id - information->minimum_id + 1;
     58#else
    5659  /* index = _Objects_Get_index( id ); */
    5760  index = id & 0x0000ffff;
    5861  /* This should work but doesn't always :( */
    5962  /* index = (unsigned16) id; */
     63#endif
    6064
    61   if ( information->maximum >= index ) {
     65   if ( information->maximum >= index ) {
    6266    _Thread_Disable_dispatch();
    6367    if ( (the_object = information->local_table[ index ]) != NULL ) {
  • c/src/exec/score/src/objectgetisr.c

    r850f87e rc31c15c  
    5858  ISR_Level        level;
    5959
     60#if defined(RTEMS_MULTIPROCESSING)
     61  index = id - information->minimum_id + 1;
     62#else
    6063  /* index = _Objects_Get_index( id ); */
    6164  index = id & 0x0000ffff;
    6265  /* This should work but doesn't always :( */
    6366  /* index = (unsigned16) id; */
     67#endif
    6468
    6569  _ISR_Disable( level );
  • cpukit/score/ChangeLog

    r850f87e rc31c15c  
     12001-11-07      Joel Sherrill <joel@OARcorp.com>
     2
     3        Reported by Todor.Todorov@barco.com and tracked as PR36.
     4        * include/rtems/score/object.h: Added prototype for
     5        _Objects_Get_by_index().
     6        * src/objectget.c, src/objectgetisr.c: Corrected procedure for
     7        getting index from Id so it is correct and optimal for both single
     8        and multiprocessor configurations.
    19
    2102001-10-22      Joel Sherrill <joel@OARcorp.com>
  • cpukit/score/include/rtems/score/object.h

    r850f87e rc31c15c  
    455455);
    456456
     457Objects_Control *_Objects_Get_by_index (
     458  Objects_Information *information,
     459  Objects_Id           id,
     460  Objects_Locations   *location
     461);
    457462/*
    458463 *  _Objects_Get_next
  • cpukit/score/src/objectget.c

    r850f87e rc31c15c  
    5454  unsigned32       index;
    5555
     56#if defined(RTEMS_MULTIPROCESSING)
     57  index = id - information->minimum_id + 1;
     58#else
    5659  /* index = _Objects_Get_index( id ); */
    5760  index = id & 0x0000ffff;
    5861  /* This should work but doesn't always :( */
    5962  /* index = (unsigned16) id; */
     63#endif
    6064
    61   if ( information->maximum >= index ) {
     65   if ( information->maximum >= index ) {
    6266    _Thread_Disable_dispatch();
    6367    if ( (the_object = information->local_table[ index ]) != NULL ) {
  • cpukit/score/src/objectgetisr.c

    r850f87e rc31c15c  
    5858  ISR_Level        level;
    5959
     60#if defined(RTEMS_MULTIPROCESSING)
     61  index = id - information->minimum_id + 1;
     62#else
    6063  /* index = _Objects_Get_index( id ); */
    6164  index = id & 0x0000ffff;
    6265  /* This should work but doesn't always :( */
    6366  /* index = (unsigned16) id; */
     67#endif
    6468
    6569  _ISR_Disable( level );
Note: See TracChangeset for help on using the changeset viewer.