forked from Imagelibrary/rtems
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
This commit is contained in:
@@ -52,7 +52,7 @@ void bsp_pretasking_hook(void)
|
||||
/* make sure it's properly aligned */
|
||||
BSP_heap_start = (BSP_heap_start + CPU_ALIGNMENT - 1) & ~(CPU_ALIGNMENT-1);
|
||||
|
||||
heap_size = (BSP_mem_size - BSP_heap_start) - BSP_Configuration.work_space_size;
|
||||
heap_size = (BSP_mem_size - BSP_heap_start) - rtems_configuration_get_work_space_size();
|
||||
heap_sbrk_spared=_bsp_sbrk_init(BSP_heap_start, &heap_size);
|
||||
|
||||
#ifdef SHOW_MORE_INIT_SETTINGS
|
||||
|
||||
Reference in New Issue
Block a user