forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -72,12 +72,6 @@ extern rtems_configuration_table BSP_Configuration;
|
||||
* NOTE: Use the standard Clock driver entry
|
||||
*/
|
||||
|
||||
/*
|
||||
* How many libio files we want
|
||||
*/
|
||||
|
||||
#define BSP_LIBIO_MAX_FDS 20
|
||||
|
||||
/* functions */
|
||||
|
||||
rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
/*
|
||||
* Add 1 extension for MPCI_fatal
|
||||
*/
|
||||
|
||||
rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
|
||||
if (BSP_Configuration.User_multiprocessing_table)
|
||||
BSP_Configuration.maximum_extensions++;
|
||||
|
||||
/*
|
||||
* Add 1 extension for MPCI_fatal
|
||||
*/
|
||||
CPU_CLICKS_PER_TICK = 1;
|
||||
|
||||
if (BSP_Configuration.User_multiprocessing_table)
|
||||
BSP_Configuration.maximum_extensions++;
|
||||
/*
|
||||
* Start most of RTEMS
|
||||
* main() will start the rest
|
||||
*/
|
||||
|
||||
CPU_CLICKS_PER_TICK = 1;
|
||||
|
||||
/*
|
||||
* 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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user