diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:46:53 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:46:53 +0000 |
commit | d11d1d2aa8010181e4834e570b234f9dff081021 (patch) | |
tree | 97ffad3a59d6fdbe1d4c47171b2e70b705fa788d /c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-d11d1d2aa8010181e4834e570b234f9dff081021.tar.bz2 |
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* README, 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/powerpc/virtex/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c index 5203d44a1a..9417fb80f7 100644 --- a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c @@ -73,16 +73,6 @@ SPR_RW(SPRG1) #include RTEMS_XPARAMETERS_H #include <stdio.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; - -char *rtems_progname; - uint32_t _heap_start; uint32_t _heap_end; uint32_t _top_of_ram; @@ -150,8 +140,8 @@ void bsp_pretasking_hook(void) /* round up from the top of workspace to next 64k boundary, get * default heapsize from linker script */ - heap_start = (((uint32_t)BSP_Configuration.work_space_start + - BSP_Configuration.work_space_size) + 0x18000) & 0xffff0000; + heap_start = (((uint32_t)Configuration.work_space_start + + rtems_configuration_get_work_space_size()) + 0x18000) & 0xffff0000; heap_end = _heap_start + (uint32_t)&_HeapSize; @@ -254,7 +244,7 @@ void bsp_start( void ) extern int _end; /* round _end up to next 64k boundary for start of workspace */ - BSP_Configuration.work_space_start = (void *)((((uint32_t)&_end) + 0x18000) & 0xffff0000); + Configuration.work_space_start = (void *)((((uint32_t)&_end) + 0x18000) & 0xffff0000); } } |