From d34d8692b674a3366e3cef11a33941e8160c338d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 4 Dec 2007 22:22:26 +0000 Subject: 2007-12-04 Joel Sherrill * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field from CPU Table to Configuration Table. Eliminate CPU Table from all ports. Delete references to CPU Table in all forms. --- c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'c/src/lib/libbsp/m68k/mvme147s/startup') diff --git a/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c index b2336c260a..6b1736b720 100644 --- a/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c @@ -31,9 +31,6 @@ extern rtems_configuration_table Configuration; rtems_configuration_table BSP_Configuration; - -rtems_cpu_table Cpu_table; - char *rtems_progname; /* @@ -93,9 +90,12 @@ void bsp_start( void ) /* Make VME access round-robin */ } - node_number = - (uint8_t) +#if defined(RTEMS_MULTIPROCESSING) + node_number = (uint8_t) (Configuration.User_multiprocessing_table->node - 1) & 0xF; +#else + node_number = 1; +#endif /* Get and store node ID, first node_number = 0 */ vme_gcsr->board_identification = node_number; @@ -140,11 +140,5 @@ void bsp_start( void ) rtems_cache_enable_instruction(); rtems_cache_enable_data(); - /* - * we only use a hook to get the C library initialized. - */ - - Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; - BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; } -- cgit v1.2.3