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/hppa1.1/simhppa | |
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/hppa1.1/simhppa')
-rw-r--r-- | c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c | 20 |
2 files changed, 0 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h b/c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h index 28359d2d3e..cc7f44dd9a 100644 --- a/c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h +++ b/c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h @@ -92,11 +92,6 @@ extern int use_print_buffer; #define CONSOLE_DRIVER_TABLE_ENTRY \ { tty_initialize, tty_open, tty_close, tty_read, tty_write, tty_control } -/* - * How many libio files we want - */ -#define BSP_LIBIO_MAX_FDS 20 - #define HPPA_INTERRUPT_EXTERNAL_MPCI HPPA_INTERRUPT_EXTERNAL_10 rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int); diff --git a/c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c b/c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c index a84f967504..4a94bcfb9d 100644 --- a/c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c +++ b/c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c @@ -172,12 +172,6 @@ void bsp_start(void) cpu_number = 0; #endif - /* - * Copy the table - */ - - BSP_Configuration = Configuration; - BSP_Configuration.work_space_start = (void *)MY_WORK_SPACE; if (BSP_Configuration.work_space_size) BSP_Configuration.work_space_size = WORKSPACE_SIZE; @@ -189,23 +183,15 @@ 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; /* register drivers */ - Cpu_table.idle_task = NULL; /* do not override system IDLE task */ - /* * Don't zero out the workspace. The simulator did it for us. */ Cpu_table.do_zero_of_workspace = FALSE; - Cpu_table.interrupt_stack_size = (12 * 1024); - Cpu_table.extra_mpci_receive_server_stack = 0; - /* * Set this artificially low for the simulator */ @@ -246,12 +232,6 @@ void bsp_start(void) #endif /* - * 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 */ |