Changeset b804d632 in rtems


Ignore:
Timestamp:
Dec 20, 2001, 5:30:18 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e6dc43d
Parents:
b9f84f1
Message:

2001-12-19 Ralf Corsepius <corsepiu@…>

  • inline/rtems/score/object.inl, macros/rtems/score/object.inl: Add add casts to Objects_Id in _Objects_Build_ids to avoid implicit typecasts from enum to int16 on bit16 targets (here: h8300).
Files:
6 edited

Legend:

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

    rb9f84f1 rb804d632  
     12001-12-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * inline/rtems/score/object.inl, macros/rtems/score/object.inl: Add
     4        add casts to Objects_Id in _Objects_Build_ids to avoid implicit
     5        typecasts from enum to int16 on bit16 targets (here: h8300).
     6
    172001-12-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/exec/score/inline/rtems/score/object.inl

    rb9f84f1 rb804d632  
    3333)
    3434{
    35   return (the_class << OBJECTS_CLASS_START_BIT) |
    36          (node << OBJECTS_NODE_START_BIT)       |
    37          (index << OBJECTS_INDEX_START_BIT);
     35  return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
     36         (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT)       |
     37         (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT);
    3838}
    3939
  • c/src/exec/score/macros/rtems/score/object.inl

    rb9f84f1 rb804d632  
    2424
    2525#define _Objects_Build_id( _the_class, _node, _index ) \
    26   ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \
    27     ((_node) << OBJECTS_NODE_START_BIT)       | \
    28     ((_index) << OBJECTS_INDEX_START_BIT) )
     26  ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \
     27    (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT)       | \
     28    (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) )
    2929
    3030/*PAGE
  • cpukit/score/ChangeLog

    rb9f84f1 rb804d632  
     12001-12-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * inline/rtems/score/object.inl, macros/rtems/score/object.inl: Add
     4        add casts to Objects_Id in _Objects_Build_ids to avoid implicit
     5        typecasts from enum to int16 on bit16 targets (here: h8300).
     6
    172001-12-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/score/inline/rtems/score/object.inl

    rb9f84f1 rb804d632  
    3333)
    3434{
    35   return (the_class << OBJECTS_CLASS_START_BIT) |
    36          (node << OBJECTS_NODE_START_BIT)       |
    37          (index << OBJECTS_INDEX_START_BIT);
     35  return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
     36         (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT)       |
     37         (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT);
    3838}
    3939
  • cpukit/score/macros/rtems/score/object.inl

    rb9f84f1 rb804d632  
    2424
    2525#define _Objects_Build_id( _the_class, _node, _index ) \
    26   ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \
    27     ((_node) << OBJECTS_NODE_START_BIT)       | \
    28     ((_index) << OBJECTS_INDEX_START_BIT) )
     26  ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \
     27    (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT)       | \
     28    (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) )
    2929
    3030/*PAGE
Note: See TracChangeset for help on using the changeset viewer.