mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
Fixed so can be included multiple times in the executive source.
This commit is contained in:
@@ -50,6 +50,7 @@ extern "C" {
|
|||||||
* It is used in single processor configurations.
|
* It is used in single processor configurations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(SAPI_INIT)
|
||||||
const rtems_multiprocessing_table
|
const rtems_multiprocessing_table
|
||||||
_Initialization_Default_multiprocessing_table = {
|
_Initialization_Default_multiprocessing_table = {
|
||||||
1, /* local node number */
|
1, /* local node number */
|
||||||
@@ -58,6 +59,10 @@ const rtems_multiprocessing_table
|
|||||||
0, /* maximum number proxies */
|
0, /* maximum number proxies */
|
||||||
NULL, /* pointer to MPCI address table */
|
NULL, /* pointer to MPCI address table */
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
extern const rtems_multiprocessing_table
|
||||||
|
_Initialization_Default_multiprocessing_table;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the version string.
|
* This is the version string.
|
||||||
@@ -65,9 +70,13 @@ const rtems_multiprocessing_table
|
|||||||
|
|
||||||
#define RTEMS_VERSION "rtems-@RTEMS_VERSION@"
|
#define RTEMS_VERSION "rtems-@RTEMS_VERSION@"
|
||||||
|
|
||||||
|
#if defined(SAPI_INIT)
|
||||||
const char _RTEMS_version[] =
|
const char _RTEMS_version[] =
|
||||||
"RTEMS RELEASE " RTEMS_VERSION
|
"RTEMS RELEASE " RTEMS_VERSION
|
||||||
"(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)";
|
"(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)";
|
||||||
|
#else
|
||||||
|
extern const char _RTEMS_version[];
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ extern "C" {
|
|||||||
* It is used in single processor configurations.
|
* It is used in single processor configurations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(SAPI_INIT)
|
||||||
const rtems_multiprocessing_table
|
const rtems_multiprocessing_table
|
||||||
_Initialization_Default_multiprocessing_table = {
|
_Initialization_Default_multiprocessing_table = {
|
||||||
1, /* local node number */
|
1, /* local node number */
|
||||||
@@ -58,6 +59,10 @@ const rtems_multiprocessing_table
|
|||||||
0, /* maximum number proxies */
|
0, /* maximum number proxies */
|
||||||
NULL, /* pointer to MPCI address table */
|
NULL, /* pointer to MPCI address table */
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
extern const rtems_multiprocessing_table
|
||||||
|
_Initialization_Default_multiprocessing_table;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the version string.
|
* This is the version string.
|
||||||
@@ -65,9 +70,13 @@ const rtems_multiprocessing_table
|
|||||||
|
|
||||||
#define RTEMS_VERSION "rtems-@RTEMS_VERSION@"
|
#define RTEMS_VERSION "rtems-@RTEMS_VERSION@"
|
||||||
|
|
||||||
|
#if defined(SAPI_INIT)
|
||||||
const char _RTEMS_version[] =
|
const char _RTEMS_version[] =
|
||||||
"RTEMS RELEASE " RTEMS_VERSION
|
"RTEMS RELEASE " RTEMS_VERSION
|
||||||
"(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)";
|
"(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)";
|
||||||
|
#else
|
||||||
|
extern const char _RTEMS_version[];
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user