diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc')
-rw-r--r-- | c/src/lib/libbsp/powerpc/papyrus/include/bsp.h | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c | 33 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/include/bsp.h | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | 32 |
4 files changed, 4 insertions, 73 deletions
diff --git a/c/src/lib/libbsp/powerpc/papyrus/include/bsp.h b/c/src/lib/libbsp/powerpc/papyrus/include/bsp.h index c246c56610..d66328b924 100644 --- a/c/src/lib/libbsp/powerpc/papyrus/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/papyrus/include/bsp.h @@ -107,12 +107,6 @@ extern rtems_cpu_table Cpu_table; /* owned by BSP */ * 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( /* returns old vector */ diff --git a/c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c b/c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c index 0765a0bd8e..245b26de96 100644 --- a/c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c @@ -107,18 +107,6 @@ void bsp_start( void ) */ /* - * Copy the Configuration Table .. so we can change it - */ - - BSP_Configuration = Configuration; - - /* - * Tell libio how many fd's we want and allow it to tweak config - */ - - rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS); - - /* * Need to "allocate" the memory for the RTEMS Workspace and * tell the RTEMS configuration where it is. This memory is * not malloc'ed. It is just "pulled from the air". @@ -132,36 +120,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; - - Cpu_table.idle_task = NULL; /* do not override system IDLE task */ - - Cpu_table.do_zero_of_workspace = TRUE; - Cpu_table.interrupt_stack_size = 4 * 1024; - Cpu_table.extra_mpci_receive_server_stack = 0; - - /* - * Don't forget the other CPU Table entries. - */ - Cpu_table.clicks_per_usec = 10; - Cpu_table.serial_per_sec = 10000000; - Cpu_table.serial_external_clock = 1; - Cpu_table.serial_xon_xoff = 0; - Cpu_table.serial_cts_rts = 1; - Cpu_table.serial_rate = 9600; - Cpu_table.timer_average_overhead = 2; - Cpu_table.timer_least_valid = 3; } diff --git a/c/src/lib/libbsp/powerpc/psim/include/bsp.h b/c/src/lib/libbsp/powerpc/psim/include/bsp.h index 28de2d66dd..b166159bbe 100644 --- a/c/src/lib/libbsp/powerpc/psim/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/psim/include/bsp.h @@ -122,12 +122,6 @@ extern int CLOCK_SPEED; extern int end; /* last address in the program */ -/* - * How many libio files we want - */ - -#define BSP_LIBIO_MAX_FDS 20 - /* functions */ void bsp_start( void ); diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c index 9deea041c6..8b68345c8c 100644 --- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c @@ -188,46 +188,28 @@ void bsp_start( void ) */ Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - - Cpu_table.predriver_hook = NULL; /* bsp_spurious_initialize;*/ - Cpu_table.postdriver_hook = bsp_postdriver_hook; - Cpu_table.idle_task = NULL; /* do not override system IDLE task */ - /* + * Is this true? + * * PSIM does zero out memory BUT only when IT begins execution. Thus * if we want to have a clean slate in the workspace each time we * begin execution of OUR application, then we must zero the workspace. + * + * It is true that it takes simulated time to clear the memory. */ Cpu_table.do_zero_of_workspace = FALSE; - /* - * This should be enough interrupt stack. - */ - Cpu_table.interrupt_stack_size = (12 * 1024); /* - * SIS does not support MP configurations so there is really no way - * to check this out. - */ - - Cpu_table.extra_mpci_receive_server_stack = 0; - - /* * The monitor likes the exception table to be at 0x0. */ Cpu_table.exceptions_in_RAM = TRUE; - /* - * Copy the table and allocate memory for the RTEMS Workspace - */ - - BSP_Configuration = Configuration; - #if defined(RTEMS_POSIX_API) BSP_Configuration.work_space_size *= 3; #endif @@ -282,10 +264,4 @@ void bsp_start( void ) CPU_PPC_CLICKS_PER_TICK = BSP_Configuration.microseconds_per_tick * (int) &PSIM_INSTRUCTIONS_PER_MICROSECOND; } - - /* - * Initialize RTEMS. main() will finish it up and start multitasking. - */ - - rtems_libio_config( &BSP_Configuration, BSP_LIBIO_MAX_FDS ); } |