2006-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>

* score/inline/rtems/score/thread.inl: Add const qualifiers to work
	around aliasing effects.
This commit is contained in:
Ralf Corsepius
2006-12-05 15:57:31 +00:00
parent 86aa798016
commit 6876ce7a44
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2006-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/inline/rtems/score/thread.inl: Add const qualifiers to work
around aliasing effects.
2006-12-04 Ralf Corsépius <ralf.corsepius@rtems.org> 2006-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/inline/rtems/score/chain.inl: Add const qualifiers (works * score/inline/rtems/score/chain.inl: Add const qualifiers (works

View File

@@ -41,7 +41,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void )
*/ */
RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing ( RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing (
Thread_Control *the_thread const Thread_Control *the_thread
) )
{ {
return ( the_thread == _Thread_Executing ); return ( the_thread == _Thread_Executing );
@@ -53,7 +53,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing (
*/ */
RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir ( RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir (
Thread_Control *the_thread const Thread_Control *the_thread
) )
{ {
return ( the_thread == _Thread_Heir ); return ( the_thread == _Thread_Heir );
@@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
RTEMS_INLINE_ROUTINE boolean _Thread_Is_allocated_fp ( RTEMS_INLINE_ROUTINE boolean _Thread_Is_allocated_fp (
Thread_Control *the_thread const Thread_Control *the_thread
) )
{ {
return ( the_thread == _Thread_Allocated_fp ); return ( the_thread == _Thread_Allocated_fp );
@@ -211,7 +211,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void )
*/ */
RTEMS_INLINE_ROUTINE boolean _Thread_Is_null ( RTEMS_INLINE_ROUTINE boolean _Thread_Is_null (
Thread_Control *the_thread const Thread_Control *the_thread
) )
{ {
return ( the_thread == NULL ); return ( the_thread == NULL );