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/arm/csb336/startup/bspstart.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'c/src/lib/libbsp/arm/csb336/startup') diff --git a/c/src/lib/libbsp/arm/csb336/startup/bspstart.c b/c/src/lib/libbsp/arm/csb336/startup/bspstart.c index 66c1967206..0a635d98cd 100644 --- a/c/src/lib/libbsp/arm/csb336/startup/bspstart.c +++ b/c/src/lib/libbsp/arm/csb336/startup/bspstart.c @@ -27,10 +27,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"; - extern void rtems_irq_mngt_init(void); void bsp_libc_init( void *, uint32_t, int ); void bsp_postdriver_hook(void); @@ -112,10 +108,10 @@ void bsp_start_default( void ) MC9328MXL_AITC_NIMASK = 0x1f; /* 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); @@ -135,21 +131,15 @@ void bsp_start_default( void ) */ #if 0 printk( "work_space_size = 0x%x\n", - BSP_Configuration.work_space_size ); - printk( "maximum_extensions = 0x%x\n", - BSP_Configuration.maximum_extensions ); + rtems_configuration_get_work_space_size() ); printk( "microseconds_per_tick = 0x%x\n", - BSP_Configuration.microseconds_per_tick ); + rtems_configuration_get_microseconds_per_tick() ); printk( "ticks_per_timeslice = 0x%x\n", - BSP_Configuration.ticks_per_timeslice ); - printk( "number_of_device_drivers = 0x%x\n", - BSP_Configuration.number_of_device_drivers ); - printk( "Device_driver_table = 0x%x\n", - BSP_Configuration.Device_driver_table ); + rtems_configuration_get_ticks_per_timeslice() ); printk( "work_space_start = 0x%x\n", - BSP_Configuration.work_space_start ); + Configuration.work_space_start ); printk( "work_space_size = 0x%x\n", - BSP_Configuration.work_space_size ); + rtems_configuration_get_work_space_size() ); #endif } /* bsp_start */ -- cgit v1.2.3