diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-15 20:50:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-04-15 20:50:31 +0000 |
commit | bd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154 (patch) | |
tree | a5409842b20b5263d7b14910033e728927dd4d41 /c/src/lib/libbsp/unix/posix/startup | |
parent | Transitioned to shared bsp_libc_init() and cleaned up comments. (diff) | |
download | rtems-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/unix/posix/startup')
-rw-r--r-- | c/src/lib/libbsp/unix/posix/startup/bspstart.c | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c index 4e0955e32a..71d85409ca 100644 --- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c +++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c @@ -128,7 +128,7 @@ void bsp_start(void) unsigned32 workspace_ptr; /* - * Copy the table + * Copy the table (normally done in shared main). */ BSP_Configuration = Configuration; @@ -214,28 +214,22 @@ void bsp_start(void) Cpu_table.extra_mpci_receive_server_stack = 0; - /* - * Tell libio how many fd's we want and allow it to tweak config - */ - - rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS); - - /* - * Add 1 extension for MPCI_fatal - */ + /* + * Add 1 extension for MPCI_fatal + */ - if (BSP_Configuration.User_multiprocessing_table) - BSP_Configuration.maximum_extensions++; + if (BSP_Configuration.User_multiprocessing_table) + BSP_Configuration.maximum_extensions++; - CPU_CLICKS_PER_TICK = 1; + CPU_CLICKS_PER_TICK = 1; - /* - * Start most of RTEMS - * main() will start the rest - */ + /* + * Start most of RTEMS + * main() will start the rest + */ - bsp_isr_level = rtems_initialize_executive_early( - &BSP_Configuration, - &Cpu_table - ); + bsp_isr_level = rtems_initialize_executive_early( + &BSP_Configuration, + &Cpu_table + ); } |