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/m68k/dmv152/startup/bspstart.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c') diff --git a/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c b/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c index fef39736d1..0de6b80078 100644 --- a/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c @@ -116,28 +116,13 @@ void bsp_start( void ) */ Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - - Cpu_table.predriver_hook = NULL; - Cpu_table.postdriver_hook = bsp_postdriver_hook; - - Cpu_table.idle_task = NULL; /* do not override system IDLE task */ - Cpu_table.do_zero_of_workspace = TRUE; + Cpu_table.interrupt_stack_size = 4096; m68k_get_vbr( vbr ); Cpu_table.interrupt_vector_table = vbr; - Cpu_table.interrupt_stack_size = 4096; - - Cpu_table.extra_mpci_receive_server_stack = 0; - - /* - * Copy the table - */ - - BSP_Configuration = Configuration; - BSP_Configuration.work_space_start = (void *) (RAM_END - BSP_Configuration.work_space_size); @@ -147,11 +132,5 @@ void bsp_start( void ) console_reserve_resources( &BSP_Configuration ); - /* - * Tell libio how many fd's we want and allow it to tweak config - */ - - rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS); - /* Clock_exit is done as an atexit() function */ } -- cgit v1.2.3