Changeset e001d84 in rtems


Ignore:
Timestamp:
Jul 24, 2000, 10:28:15 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ca8dfbc
Parents:
ce21604c
Message:

Use bitwise and not cast to unsigned16 to remove upper bits.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/objectget.c

    rce21604c re001d84  
    5555
    5656  /* index = _Objects_Get_index( id ); */
    57   index = (unsigned16) id;
     57  index = id & 0x0000ffff;
     58  /* This should work but doesn't always :( */
     59  /* index = (unsigned16) id; */
    5860
    5961  if ( information->maximum >= index ) {
  • c/src/exec/score/src/objectgetisr.c

    rce21604c re001d84  
    5959
    6060  /* index = _Objects_Get_index( id ); */
    61   index = (unsigned16) id;
     61  index = id & 0x0000ffff;
     62  /* This should work but doesn't always :( */
     63  /* index = (unsigned16) id; */
    6264
    6365  _ISR_Disable( level );
  • cpukit/score/src/objectget.c

    rce21604c re001d84  
    5555
    5656  /* index = _Objects_Get_index( id ); */
    57   index = (unsigned16) id;
     57  index = id & 0x0000ffff;
     58  /* This should work but doesn't always :( */
     59  /* index = (unsigned16) id; */
    5860
    5961  if ( information->maximum >= index ) {
  • cpukit/score/src/objectgetisr.c

    rce21604c re001d84  
    5959
    6060  /* index = _Objects_Get_index( id ); */
    61   index = (unsigned16) id;
     61  index = id & 0x0000ffff;
     62  /* This should work but doesn't always :( */
     63  /* index = (unsigned16) id; */
    6264
    6365  _ISR_Disable( level );
Note: See TracChangeset for help on using the changeset viewer.