From bd9c3d1e76df8b4e774f50dbaf1bd5ebeeb7a154 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 15 Apr 1998 20:50:31 +0000 Subject: 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. --- c/src/lib/libbsp/unix/posix/startup/bspstart.c | 36 +++++++++++--------------- 1 file changed, 15 insertions(+), 21 deletions(-) (limited to 'c/src/lib/libbsp/unix/posix/startup') 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 + ); } -- cgit v1.2.3