diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-09 17:59:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-09 17:59:40 +0000 |
commit | f16ea9086875efdaf56eb64596d6c28c6c236dac (patch) | |
tree | c10d5d9ed5e21ce8ac20aab1aa88b7b3355a66d8 /cpukit | |
parent | 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-f16ea9086875efdaf56eb64596d6c28c6c236dac.tar.bz2 |
2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/error.c, sapi/include/rtems/config.h: Do not
reference _Configuration_MP_table if multiprocessing is disabled.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/error.c | 4 | ||||
-rw-r--r-- | cpukit/sapi/include/rtems/config.h | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 47f27c9758..fa3712a4cc 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com> + * libcsupport/src/error.c, sapi/include/rtems/config.h: Do not + reference _Configuration_MP_table if multiprocessing is disabled. + +2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com> + * libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-server.c: Do not reference _Configuration_MP_table if multiprocessing is disabled. diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c index 38459e5eec..c94be59ad5 100644 --- a/cpukit/libcsupport/src/error.c +++ b/cpukit/libcsupport/src/error.c @@ -132,8 +132,10 @@ static int rtems_verror( if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; - if (_System_state_Is_multiprocessing) + #if defined(RTEMS_MULTIPROCESSING) + if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); + #endif chars_written += vfprintf(stderr, printf_format, arglist); diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index cb7af0dc8c..598f293ff9 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -124,7 +124,9 @@ typedef struct { */ SAPI_EXTERN rtems_configuration_table *_Configuration_Table; -SAPI_EXTERN rtems_multiprocessing_table *_Configuration_MP_table; +#if defined(RTEMS_MULTIPROCESSING) + SAPI_EXTERN rtems_multiprocessing_table *_Configuration_MP_table; +#endif /* * Some handy macros to avoid dependencies on either the BSP |