From a3ca595f1ab85c8b43bca39e29a74038de29958e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Dec 2007 15:50:04 +0000 Subject: 2007-12-11 Joel Sherrill * clock/clock.c, 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/c4x/c4xsim/startup/bspstart.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c') diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c index d15ce74ce2..8e497a91e2 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c +++ b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c @@ -20,14 +20,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; - /* * Use the shared implementations of the following routines */ @@ -74,10 +66,10 @@ void bsp_start( void ) extern void *_WorkspaceBase; extern uint32_t _WorkspaceMax; - BSP_Configuration.work_space_start = (void *)&_WorkspaceBase; + Configuration.work_space_start = (void *)&_WorkspaceBase; /* XXX check to see if satisfying small memory model */ - if ( BSP_Configuration.work_space_size > (int) &_WorkspaceMax ) + if ( rtems_configuration_get_work_space_size() > (int) &_WorkspaceMax ) rtems_fatal_error_occurred( 0x43218765 ); BSP_output_char = C4X_BSP_output_char; -- cgit v1.2.3