Fixed so can be included multiple times in the executive source.

This commit is contained in:
Joel Sherrill
1999-11-16 16:04:51 +00:00
parent 31473b7107
commit f4b76ab569
2 changed files with 18 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ extern "C" {
* It is used in single processor configurations.
*/
#if defined(SAPI_INIT)
const rtems_multiprocessing_table
_Initialization_Default_multiprocessing_table = {
1, /* local node number */
@@ -58,6 +59,10 @@ const rtems_multiprocessing_table
0, /* maximum number proxies */
NULL, /* pointer to MPCI address table */
};
#else
extern const rtems_multiprocessing_table
_Initialization_Default_multiprocessing_table;
#endif
/*
* This is the version string.
@@ -65,9 +70,13 @@ const rtems_multiprocessing_table
#define RTEMS_VERSION "rtems-@RTEMS_VERSION@"
#if defined(SAPI_INIT)
const char _RTEMS_version[] =
"RTEMS RELEASE " RTEMS_VERSION
"(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)";
#else
extern const char _RTEMS_version[];
#endif
#ifdef __cplusplus
}

View File

@@ -50,6 +50,7 @@ extern "C" {
* It is used in single processor configurations.
*/
#if defined(SAPI_INIT)
const rtems_multiprocessing_table
_Initialization_Default_multiprocessing_table = {
1, /* local node number */
@@ -58,6 +59,10 @@ const rtems_multiprocessing_table
0, /* maximum number proxies */
NULL, /* pointer to MPCI address table */
};
#else
extern const rtems_multiprocessing_table
_Initialization_Default_multiprocessing_table;
#endif
/*
* This is the version string.
@@ -65,9 +70,13 @@ const rtems_multiprocessing_table
#define RTEMS_VERSION "rtems-@RTEMS_VERSION@"
#if defined(SAPI_INIT)
const char _RTEMS_version[] =
"RTEMS RELEASE " RTEMS_VERSION
"(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)";
#else
extern const char _RTEMS_version[];
#endif
#ifdef __cplusplus
}