From 4130d8e2e2312b72400403570b3d5f88f6f9d6db Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Dec 2007 15:50:25 +0000 Subject: 2007-12-11 Joel Sherrill * include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields. --- c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c') diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c index 75fc84b728..118b46d874 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c @@ -60,16 +60,7 @@ SPR_RW(SPRG0) SPR_RW(SPRG1) -/* - * The original table from the application (in ROM) and our copy of it with - * some changes. Configuration is defined in . Make sure that - * our configuration tables are uninitialized so that they get allocated in - * the .bss section (RAM). - */ -extern rtems_configuration_table Configuration; extern unsigned long intrStackPtr; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; /* * Driver configuration parameters @@ -289,7 +280,7 @@ void bsp_start(void) * not malloc'ed. It is just "pulled from the air". */ - BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; + Configuration.work_space_start = (void *)&_WorkspaceBase; /* * initialize the device driver parameters @@ -324,7 +315,7 @@ void bsp_start(void) * Call this in case we use TERMIOS for console I/O */ - m8xx_uart_reserve_resources(&BSP_Configuration); + m8xx_uart_reserve_resources(&Configuration); /* rtems_termios_initialize(); -- cgit v1.2.3