summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-09 17:59:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-09 17:59:40 +0000
commitf16ea9086875efdaf56eb64596d6c28c6c236dac (patch)
treec10d5d9ed5e21ce8ac20aab1aa88b7b3355a66d8
parent2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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.
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libcsupport/src/error.c4
-rw-r--r--cpukit/sapi/include/rtems/config.h4
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