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/i386/pc386/startup/bspstart.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'c/src/lib/libbsp/i386/pc386') diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c index 773d3ba804..305545dee0 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c +++ b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c @@ -118,33 +118,8 @@ void bsp_start( void ) Cpu_table.interrupt_stack_size = 4096; Cpu_table.extra_mpci_receive_server_stack = 0; - /* Copy user's table and make necessary adjustments. */ - - BSP_Configuration = Configuration; - /* Place RTEMS workspace at top of physical RAM (RAM_END defined in 'bsp.h' */ BSP_Configuration.work_space_start = (void *)(RAM_END - BSP_Configuration.work_space_size); - - /* Tell libio how many fd's we want and allow it to tweak config. */ - - rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS); - -#if 0 - rtems_initialize_executive(&BSP_Configuration, &Cpu_table); - /* does not return */ - - /*-------------------------------------------------------------------------+ - | We only return here if the executive has finished. This happens when the - | task has called exit(). We will then call _exit() which is part of the bsp. - +--------------------------------------------------------------------------*/ - - for (;;) - _exit(0); - - /* no cleanup necessary for PC386 */ - - return 0; -#endif } /* bsp_start */ -- cgit v1.2.3