From d11d1d2aa8010181e4834e570b234f9dff081021 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Dec 2007 15:46:53 +0000 Subject: 2007-12-11 Joel Sherrill * README, 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/helas403/startup/bspstart.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c') diff --git a/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c b/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c index ee00a0418c..f2a180b96d 100644 --- a/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c @@ -62,14 +62,6 @@ #include #include -/* - * The original table from the application and our copy of it with - * some changes. - */ - -extern rtems_configuration_table Configuration; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; void *bsp_ram_end = (void *)RAM_END; /* first addr behind avail. ram area */ /* @@ -165,8 +157,8 @@ void bsp_start( void ) -remove RAM_END from bsp.h, this cannot be valid... or must be a function call */ - BSP_Configuration.work_space_start = (void *) - ((char *)(bsp_ram_end)) - BSP_Configuration.work_space_size; + Configuration.work_space_start = (void *) + ((char *)(bsp_ram_end)) - rtems_configuration_get_work_space_size(); /* * initialize the device driver parameters -- cgit v1.2.3