summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-12 17:08:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-12 17:08:20 +0000
commita70ec6cb9cc31d6b2b697bdc624a66cca8b05eb5 (patch)
tree25d8e95e35434a8d8e9f3d5dd8f4410610a00b19 /c/src/lib/libbsp/unix/posix/startup/bspstart.c
parent2007-12-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-a70ec6cb9cc31d6b2b697bdc624a66cca8b05eb5.tar.bz2
2007-12-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Links and runs again. * console/console-io.c: New file.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/bspstart.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c
index 45001c68ef..51bd1dbedd 100644
--- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c
+++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c
@@ -106,37 +106,37 @@ void bsp_postdriver_hook(void)
void bsp_start(void)
{
- uintptr_t workspace_ptr;
+ uintptr_t workspace_ptr;
+ cpu_number = 0;
+
+ #if defined(RTEMS_MULTIPROCESSING)
/*
* If the node number is -1 then the application better provide
* it through environment variables RTEMS_NODE.
* Ditto for RTEMS_MAXIMUM_NODES
*/
-
if (Configuration.User_multiprocessing_table) {
- char *p;
-
- if (Configuration.User_multiprocessing_table->node == -1) {
- p = getenv("RTEMS_NODE");
- Configuration.User_multiprocessing_table->node = p ? atoi(p) : 1;
- }
-
- /* If needed provide maximum_nodes also */
- if (Configuration.User_multiprocessing_table->maximum_nodes == -1) {
- p = getenv("RTEMS_MAXIMUM_NODES");
- Configuration.User_multiprocessing_table->maximum_nodes = p ? atoi(p) : 1;
- }
+ char *p;
+
+ if (Configuration.User_multiprocessing_table->node == -1) {
+ p = getenv("RTEMS_NODE");
+ Configuration.User_multiprocessing_table->node = p ? atoi(p) : 1;
+ }
+
+ /* If needed provide maximum_nodes also */
+ if (Configuration.User_multiprocessing_table->maximum_nodes == -1) {
+ p = getenv("RTEMS_MAXIMUM_NODES");
+ Configuration.User_multiprocessing_table->maximum_nodes = p ? atoi(p) : 1;
+ }
}
/*
* Set cpu_number to accurately reflect our cpu number
*/
-
- if (Configuration.User_multiprocessing_table->User_multiprocessing_table)
+ if (Configuration.User_multiprocessing_table)
cpu_number = Configuration.User_multiprocessing_table->node - 1;
- else
- cpu_number = 0;
+ #endif
if (getenv("RTEMS_WORKSPACE_SIZE"))
rtems_configuration_get_work_space_size() =