diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-12-20 17:30:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-12-20 17:30:18 +0000 |
commit | b804d632c02ceb4414411f1ca5ab909c6d2ea91c (patch) | |
tree | 930a65aae2749961b040117b2c320373b784be8e /c | |
parent | 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-b804d632c02ceb4414411f1ca5ab909c6d2ea91c.tar.bz2 |
2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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).
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/exec/score/inline/rtems/score/object.inl | 6 | ||||
-rw-r--r-- | c/src/exec/score/macros/rtems/score/object.inl | 6 | ||||
-rw-r--r-- | cpukit/score/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/object.inl | 6 | ||||
-rw-r--r-- | cpukit/score/macros/rtems/score/object.inl | 6 |
6 files changed, 24 insertions, 12 deletions
diff --git a/c/src/exec/score/ChangeLog b/c/src/exec/score/ChangeLog index 6d0cdb845b..e9080fa295 100644 --- a/c/src/exec/score/ChangeLog +++ b/c/src/exec/score/ChangeLog @@ -1,5 +1,11 @@ 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + * 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). + +2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + * src/Makefile.am: Add multilib support. 2001-11-28 Joel Sherrill <joel@OARcorp.com>, diff --git a/c/src/exec/score/inline/rtems/score/object.inl b/c/src/exec/score/inline/rtems/score/object.inl index 82a59b03d0..c24e43f276 100644 --- a/c/src/exec/score/inline/rtems/score/object.inl +++ b/c/src/exec/score/inline/rtems/score/object.inl @@ -32,9 +32,9 @@ RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id( unsigned32 index ) { - return (the_class << OBJECTS_CLASS_START_BIT) | - (node << OBJECTS_NODE_START_BIT) | - (index << OBJECTS_INDEX_START_BIT); + return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | + (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | + (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT); } /*PAGE diff --git a/c/src/exec/score/macros/rtems/score/object.inl b/c/src/exec/score/macros/rtems/score/object.inl index bb0070f269..f806cadafc 100644 --- a/c/src/exec/score/macros/rtems/score/object.inl +++ b/c/src/exec/score/macros/rtems/score/object.inl @@ -23,9 +23,9 @@ */ #define _Objects_Build_id( _the_class, _node, _index ) \ - ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \ - ((_node) << OBJECTS_NODE_START_BIT) | \ - ((_index) << OBJECTS_INDEX_START_BIT) ) + ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \ + (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | \ + (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) ) /*PAGE * diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog index 6d0cdb845b..e9080fa295 100644 --- a/cpukit/score/ChangeLog +++ b/cpukit/score/ChangeLog @@ -1,5 +1,11 @@ 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + * 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). + +2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> + * src/Makefile.am: Add multilib support. 2001-11-28 Joel Sherrill <joel@OARcorp.com>, diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl index 82a59b03d0..c24e43f276 100644 --- a/cpukit/score/inline/rtems/score/object.inl +++ b/cpukit/score/inline/rtems/score/object.inl @@ -32,9 +32,9 @@ RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id( unsigned32 index ) { - return (the_class << OBJECTS_CLASS_START_BIT) | - (node << OBJECTS_NODE_START_BIT) | - (index << OBJECTS_INDEX_START_BIT); + return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | + (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | + (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT); } /*PAGE diff --git a/cpukit/score/macros/rtems/score/object.inl b/cpukit/score/macros/rtems/score/object.inl index bb0070f269..f806cadafc 100644 --- a/cpukit/score/macros/rtems/score/object.inl +++ b/cpukit/score/macros/rtems/score/object.inl @@ -23,9 +23,9 @@ */ #define _Objects_Build_id( _the_class, _node, _index ) \ - ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \ - ((_node) << OBJECTS_NODE_START_BIT) | \ - ((_index) << OBJECTS_INDEX_START_BIT) ) + ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \ + (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | \ + (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) ) /*PAGE * |