diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:50:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:50:04 +0000 |
commit | a3ca595f1ab85c8b43bca39e29a74038de29958e (patch) | |
tree | 6dfd3c68af9cc73dedc43f0c40caf1ef9da08ee9 /c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-a3ca595f1ab85c8b43bca39e29a74038de29958e.tar.bz2 |
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c | 12 |
1 files changed, 2 insertions, 10 deletions
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 @@ -21,14 +21,6 @@ #include <rtems/libcsupport.h> /* - * 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; |