From 6876ce7a4433e205ee30c3bdaec5dff7beec1785 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 5 Dec 2006 15:57:31 +0000 Subject: =?UTF-8?q?2006-12-05=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * score/inline/rtems/score/thread.inl: Add const qualifiers to work around aliasing effects. --- cpukit/score/inline/rtems/score/thread.inl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/score/inline') diff --git a/cpukit/score/inline/rtems/score/thread.inl b/cpukit/score/inline/rtems/score/thread.inl index 125f7cf5f7..44d626d71c 100644 --- a/cpukit/score/inline/rtems/score/thread.inl +++ b/cpukit/score/inline/rtems/score/thread.inl @@ -41,7 +41,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void ) */ RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing ( - Thread_Control *the_thread + const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); @@ -53,7 +53,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing ( */ RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir ( - Thread_Control *the_thread + const Thread_Control *the_thread ) { 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 ) RTEMS_INLINE_ROUTINE boolean _Thread_Is_allocated_fp ( - Thread_Control *the_thread + const Thread_Control *the_thread ) { 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 ( - Thread_Control *the_thread + const Thread_Control *the_thread ) { return ( the_thread == NULL ); -- cgit v1.2.3