forked from Imagelibrary/rtems
2008-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/sysstate.h, score/inline/rtems/score/sysstate.inl, score/src/thread.c: Make _System_state_Is_multiprocessing unused when multiprocessing is not enabled. Saves one more variable from single processor configuration.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2008-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* score/include/rtems/score/sysstate.h,
|
||||
score/inline/rtems/score/sysstate.inl, score/src/thread.c: Make
|
||||
_System_state_Is_multiprocessing unused when multiprocessing is not
|
||||
enabled. Saves one more variable from single processor configuration.
|
||||
|
||||
2008-08-07 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* libcsupport/src/_rename_r.c: Fixed return code bug. Add a check
|
||||
|
||||
@@ -64,11 +64,13 @@ typedef enum {
|
||||
/** This defines the highest value system state. */
|
||||
#define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_FAILED
|
||||
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
/**
|
||||
* The following variable indicates whether or not this is
|
||||
* an multiprocessing system.
|
||||
*/
|
||||
SCORE_EXTERN boolean _System_state_Is_multiprocessing;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The following variable contains the current system state.
|
||||
|
||||
@@ -33,7 +33,9 @@ RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
|
||||
)
|
||||
{
|
||||
_System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION;
|
||||
_System_state_Is_multiprocessing = is_multiprocessing;
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
_System_state_Is_multiprocessing = is_multiprocessing;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -99,7 +99,11 @@ void _Thread_Handler_initialization(
|
||||
&_Thread_Internal_information,
|
||||
OBJECTS_INTERNAL_API,
|
||||
OBJECTS_INTERNAL_THREADS,
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
( _System_state_Is_multiprocessing ) ? 2 : 1,
|
||||
#else
|
||||
1,
|
||||
#endif
|
||||
sizeof( Thread_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
|
||||
Reference in New Issue
Block a user