summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/csb337
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:50:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:50:25 +0000
commit4130d8e2e2312b72400403570b3d5f88f6f9d6db (patch)
tree8ab81640f610440e061706416fe62c5f1954b87c /c/src/lib/libbsp/arm/csb337
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-4130d8e2e2312b72400403570b3d5f88f6f9d6db.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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 'c/src/lib/libbsp/arm/csb337')
-rw-r--r--c/src/lib/libbsp/arm/csb337/ChangeLog6
-rw-r--r--c/src/lib/libbsp/arm/csb337/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/arm/csb337/startup/bspstart.c23
3 files changed, 12 insertions, 19 deletions
diff --git a/c/src/lib/libbsp/arm/csb337/ChangeLog b/c/src/lib/libbsp/arm/csb337/ChangeLog
index 418d627876..15d811b590 100644
--- a/c/src/lib/libbsp/arm/csb337/ChangeLog
+++ b/c/src/lib/libbsp/arm/csb337/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * include/bsp.h, startup/bspstart.c: Eliminate copies of the
+ Configuration Table. Use the RTEMS provided accessor macros to obtain
+ configuration fields.
+
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
diff --git a/c/src/lib/libbsp/arm/csb337/include/bsp.h b/c/src/lib/libbsp/arm/csb337/include/bsp.h
index b6eac8a6c7..d06c2807a9 100644
--- a/c/src/lib/libbsp/arm/csb337/include/bsp.h
+++ b/c/src/lib/libbsp/arm/csb337/include/bsp.h
@@ -40,8 +40,6 @@ static inline int32_t BSP_get_baud(void) {return 38400;}
/* How many serial ports? */
#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
-extern rtems_configuration_table BSP_Configuration;
-
#define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */
/*
diff --git a/c/src/lib/libbsp/arm/csb337/startup/bspstart.c b/c/src/lib/libbsp/arm/csb337/startup/bspstart.c
index d7f381fd07..68772f7e2a 100644
--- a/c/src/lib/libbsp/arm/csb337/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/csb337/startup/bspstart.c
@@ -29,9 +29,6 @@ extern void *_bss_free_start;
unsigned long free_mem_start;
unsigned long free_mem_end;
-rtems_configuration_table BSP_Configuration;
-char *rtems_progname = "RTEMS";
-
/* Function prototypes */
extern void rtems_irq_mngt_init(void);
void bsp_libc_init( void *, uint32_t, int );
@@ -100,10 +97,10 @@ void bsp_start_default( void )
fix_mac_addr();
/* Place RTEMS workspace at beginning of free memory. */
- BSP_Configuration.work_space_start = (void *)&_bss_free_start;
+ Configuration.work_space_start = (void *)&_bss_free_start;
free_mem_start = ((uint32_t)&_bss_free_start +
- BSP_Configuration.work_space_size);
+ rtems_configuration_get_work_space_size());
free_mem_end = ((uint32_t)&_sdram_base + (uint32_t)&_sdram_size);
@@ -123,21 +120,13 @@ void bsp_start_default( void )
*/
#if 0
printk( "work_space_size = 0x%x\n\r",
- BSP_Configuration.work_space_size );
- printk( "maximum_extensions = 0x%x\n\r",
- BSP_Configuration.maximum_extensions );
+ rtems_configuration_get_work_space_size() );
printk( "microseconds_per_tick = 0x%x\n\r",
- BSP_Configuration.microseconds_per_tick );
+ rtems_configuration_get_microseconds_per_tick() );
printk( "ticks_per_timeslice = 0x%x\n\r",
- BSP_Configuration.ticks_per_timeslice );
- printk( "number_of_device_drivers = 0x%x\n\r",
- BSP_Configuration.number_of_device_drivers );
- printk( "Device_driver_table = 0x%x\n\r",
- BSP_Configuration.Device_driver_table );
- printk( "work_space_start = 0x%x\n\r",
- BSP_Configuration.work_space_start );
+ rtems_configuration_get_ticks_per_timeslice() );
printk( "work_space_size = 0x%x\n\r",
- BSP_Configuration.work_space_size );
+ rtems_configuration_get_work_space_size() );
#endif
} /* bsp_start */