From 56ed8f0fa9b277a0b042bb29ae4c66f34a484803 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 4 Dec 2007 22:21:51 +0000 Subject: 2007-12-04 Joel Sherrill * startup/bspstart.c, startup/bspstart.c.nocache: 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/powerpc/mbx8xx/ChangeLog | 7 +++++++ c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c | 11 +---------- c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache | 13 +------------ 3 files changed, 9 insertions(+), 22 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/mbx8xx') diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog index c912e63c1b..fd8ac95df6 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog @@ -1,3 +1,10 @@ +2007-12-04 Joel Sherrill + + * startup/bspstart.c, startup/bspstart.c.nocache: 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. + 2007-12-04 Joel Sherrill * Makefile.am: Add bsppredriverhook.c. diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c index efc76c797b..691238256c 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c @@ -41,9 +41,6 @@ SPR_RW(SPRG1) extern rtems_configuration_table Configuration; extern unsigned long intrStackPtr; rtems_configuration_table BSP_Configuration; - -rtems_cpu_table Cpu_table; - char *rtems_progname; /* @@ -89,10 +86,6 @@ void _BSP_Fatal_error(unsigned int v) * Must not use libc (to do io) from here, since drivers are not yet * initialized. * - * Installed in the rtems_cpu_table defined in - * rtems/c/src/exec/score/cpu/m68k/cpu.h in main() below. Called from - * rtems_initialize_executive() defined in rtems/c/src/exec/sapi/src/init.c - * * Input parameters: NONE * * Output parameters: NONE @@ -205,10 +198,8 @@ void bsp_start(void) BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; /* - * initialize the CPU table for this BSP + * initialize the device driver parameters */ - if( Cpu_table.interrupt_stack_size < 4 * 1024 ) - Cpu_table.interrupt_stack_size = 4 * 1024; #if ( defined(mbx860_001b) || \ defined(mbx860_002b) || \ diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache index afa11dbbb4..455c01a9b2 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache +++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache @@ -32,9 +32,6 @@ */ extern rtems_configuration_table Configuration; rtems_configuration_table BSP_Configuration; - -rtems_cpu_table Cpu_table; - char *rtems_progname; /* @@ -67,10 +64,6 @@ void bsp_libc_init( void *, uint32_t, int ); * Must not use libc (to do io) from here, since drivers are not yet * initialized. * - * Installed in the rtems_cpu_table defined in - * rtems/c/src/exec/score/cpu/m68k/cpu.h in main() below. Called from - * rtems_initialize_executive() defined in rtems/c/src/exec/sapi/src/init.c - * * Input parameters: NONE * * Output parameters: NONE @@ -163,12 +156,8 @@ void bsp_start(void) BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; /* - * initialize the CPU table for this BSP + * initialize the device driver parameters */ - - if( Cpu_table.interrupt_stack_size < 4 * 1024 ) - Cpu_table.interrupt_stack_size = 4 * 1024; - bsp_clicks_per_usec = 1; /* for 4MHz extclk */ bsp_serial_per_sec = 10000000; bsp_serial_external_clock = 1; -- cgit v1.2.3