Changeset 4b39acf in rtems


Ignore:
Timestamp:
Dec 11, 2007, 3:46:56 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
94beb19
Parents:
d11d1d2a
Message:

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Location:
c/src/lib/libbsp/powerpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ChangeLog

    rd11d1d2a r4b39acf  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Eliminate
     4        copies of the Configuration Table. Use the RTEMS provided accessor
     5        macros to obtain configuration fields.
     6
    172007-12-10      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    rd11d1d2a r4b39acf  
    111111
    112112/*
    113  *  The original table from the application and our copy of it with
    114  *  some changes.
    115  */
    116 
    117 extern rtems_configuration_table Configuration;
    118 rtems_configuration_table  BSP_Configuration;
    119 char *rtems_progname;
    120 
    121 /*
    122113 *  Use the shared implementations of the following routines
    123114 */
     
    383374
    384375#ifdef SHOW_MORE_INIT_SETTINGS
    385   printk("BSP_Configuration.work_space_size = %x\n",
    386           BSP_Configuration.work_space_size);
     376  printk("rtems_configuration_get_work_space_size() = %x\n",
     377          rtems_configuration_get_work_space_size());
    387378#endif
    388379
    389380  work_space_start =
    390     (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size;
     381    (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size();
    391382
    392383  if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE +
     
    396387  }
    397388
    398   BSP_Configuration.work_space_start = work_space_start;
     389  Configuration.work_space_start = work_space_start;
    399390
    400391  /*
  • c/src/lib/libbsp/powerpc/shared/startup/pretaskinghook.c

    rd11d1d2a r4b39acf  
    5353  BSP_heap_start = (BSP_heap_start + CPU_ALIGNMENT - 1) & ~(CPU_ALIGNMENT-1);
    5454
    55   heap_size = (BSP_mem_size - BSP_heap_start) - BSP_Configuration.work_space_size;
     55  heap_size = (BSP_mem_size - BSP_heap_start) - rtems_configuration_get_work_space_size();
    5656  heap_sbrk_spared=_bsp_sbrk_init(BSP_heap_start, &heap_size);
    5757
Note: See TracChangeset for help on using the changeset viewer.