summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-15 20:50:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-04-15 20:50:31 +0000
commitbd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154 (patch)
treea5409842b20b5263d7b14910033e728927dd4d41 /c/src/lib/libbsp/sparc
parentTransitioned to shared bsp_libc_init() and cleaned up comments. (diff)
downloadrtems-bd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154.tar.bz2
Numerous changes which in total greatly reduced the amount of source
code in each BSP's bspstart.c. These changes were: + confdefs.h now knows libio's semaphore requirements + shared/main.c now copies Configuration to BSP_Configuration + shared/main.c fills in the Cpu_table with default values This removed the need for rtems_libio_config() and the constant BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open files can now be set on the gcc command line.
Diffstat (limited to 'c/src/lib/libbsp/sparc')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/include/bsp.h6
-rw-r--r--c/src/lib/libbsp/sparc/erc32/startup/bspstart.c25
2 files changed, 0 insertions, 31 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
index eef586db00..f6c3a46586 100644
--- a/c/src/lib/libbsp/sparc/erc32/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/erc32/include/bsp.h
@@ -142,12 +142,6 @@ extern int end; /* last address in the program */
* NOTE: Use the standard Clock driver entry
*/
-/*
- * How many libio files we want
- */
-
-#define BSP_LIBIO_MAX_FDS 20
-
/* miscellaneous stuff assumed to exist */
diff --git a/c/src/lib/libbsp/sparc/erc32/startup/bspstart.c b/c/src/lib/libbsp/sparc/erc32/startup/bspstart.c
index 166fe3cfac..e660e64d25 100644
--- a/c/src/lib/libbsp/sparc/erc32/startup/bspstart.c
+++ b/c/src/lib/libbsp/sparc/erc32/startup/bspstart.c
@@ -198,19 +198,13 @@ void bsp_start( void )
*/
Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */
-
- Cpu_table.predriver_hook = NULL; /* bsp_spurious_initialize;*/
-
Cpu_table.postdriver_hook = bsp_postdriver_hook;
- Cpu_table.idle_task = NULL; /* do not override system IDLE task */
-
/*
* SIS does zero out memory BUT only when IT begins execution. Thus
* if we want to have a clean slate in the workspace each time we
* begin execution of OUR application, then we must zero the workspace.
*/
-
Cpu_table.do_zero_of_workspace = TRUE;
/*
@@ -219,19 +213,6 @@ void bsp_start( void )
Cpu_table.interrupt_stack_size = (24 * 1024);
- /*
- * SIS does not support MP configurations so there is really no way
- * to check this out.
- */
-
- Cpu_table.extra_mpci_receive_server_stack = 0;
-
- /*
- * Copy the table and allocate memory for the RTEMS Workspace
- */
-
- BSP_Configuration = Configuration;
-
#if defined(RTEMS_POSIX_API)
BSP_Configuration.work_space_size *= 3;
#endif
@@ -273,10 +254,4 @@ void bsp_start( void )
*/
CPU_SPARC_CLICKS_PER_TICK = BSP_Configuration.microseconds_per_tick;
-
- /*
- * Initialize RTEMS. main() will finish it up and start multitasking.
- */
-
- rtems_libio_config( &BSP_Configuration, BSP_LIBIO_MAX_FDS );
}