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).
This commit is contained in:
Joel Sherrill
2001-12-20 17:30:18 +00:00
parent b9f84f1f06
commit b804d632c0
6 changed files with 24 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
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> 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/Makefile.am: Add multilib support. * src/Makefile.am: Add multilib support.

View File

@@ -32,9 +32,9 @@ RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id(
unsigned32 index unsigned32 index
) )
{ {
return (the_class << OBJECTS_CLASS_START_BIT) | return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
(node << OBJECTS_NODE_START_BIT) | (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) |
(index << OBJECTS_INDEX_START_BIT); (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT);
} }
/*PAGE /*PAGE

View File

@@ -23,9 +23,9 @@
*/ */
#define _Objects_Build_id( _the_class, _node, _index ) \ #define _Objects_Build_id( _the_class, _node, _index ) \
( ((_the_class) << OBJECTS_CLASS_START_BIT) | \ ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \
((_node) << OBJECTS_NODE_START_BIT) | \ (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | \
((_index) << OBJECTS_INDEX_START_BIT) ) (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) )
/*PAGE /*PAGE
* *

View File

@@ -1,3 +1,9 @@
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> 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/Makefile.am: Add multilib support. * src/Makefile.am: Add multilib support.

View File

@@ -32,9 +32,9 @@ RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id(
unsigned32 index unsigned32 index
) )
{ {
return (the_class << OBJECTS_CLASS_START_BIT) | return (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
(node << OBJECTS_NODE_START_BIT) | (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) |
(index << OBJECTS_INDEX_START_BIT); (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT);
} }
/*PAGE /*PAGE

View File

@@ -23,9 +23,9 @@
*/ */
#define _Objects_Build_id( _the_class, _node, _index ) \ #define _Objects_Build_id( _the_class, _node, _index ) \
( ((_the_class) << OBJECTS_CLASS_START_BIT) | \ ( (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) | \
((_node) << OBJECTS_NODE_START_BIT) | \ (( (Objects_Id) node ) << OBJECTS_NODE_START_BIT) | \
((_index) << OBJECTS_INDEX_START_BIT) ) (( (Objects_Id) index ) << OBJECTS_INDEX_START_BIT) )
/*PAGE /*PAGE
* *