Changeset f6821c3 in rtems


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

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

  • bsp_specs, include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
4 edited

Legend:

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

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

    red5ba1c9 rf6821c3  
    1111
    1212*endfile:
    13 %{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}
     13%{!qrtems: %(old_endfile)} %{qrtems: ecrtn.o%s}
  • c/src/lib/libbsp/powerpc/psim/include/bsp.h

    red5ba1c9 rf6821c3  
    8282void bsp_cleanup( void );
    8383
    84 extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
    85 
    8684#endif /* ASM */
    8785
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    red5ba1c9 rf6821c3  
    4646
    4747/*
    48  *  The original table from the application and our copy of it with
    49  *  some changes.
    50  */
    51 
    52 extern rtems_configuration_table  Configuration;
    53 rtems_configuration_table         BSP_Configuration;
    54 
    55 /*
    56  *  Tells us where to put the workspace in case remote debugger is present.
    57  */
    58 
    59 #if 0
    60 extern uint32_t          rdb_start;
    61 #endif
    62 
    63 /*
    6448 * PCI Bus Frequency
    6549 */
     
    11296    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    11397
    114   heap_size = BSP_Configuration.work_space_start - (void *)&end;
     98  heap_size = Configuration.work_space_start - (void *)&end;
    11599  heap_size &= 0xfffffff0;  /* keep it as a multiple of 16 bytes */
    116100
     
    152136  bsp_exceptions_in_RAM = FALSE;
    153137
    154   BSP_Configuration.work_space_size += 1024;
     138  rtems_configuration_get_work_space_size() += 1024;
    155139
    156140  work_space_start =
    157     (unsigned char *)&RAM_END - BSP_Configuration.work_space_size;
     141    (unsigned char *)&RAM_END - rtems_configuration_get_work_space_size();
    158142
    159143  if ( work_space_start <= (unsigned char *)&end ) {
     
    162146  }
    163147
    164   BSP_Configuration.work_space_start = work_space_start;
     148  Configuration.work_space_start = work_space_start;
    165149  #if (BSP_DIRTY_MEMORY == 1)
    166150  {
Note: See TracChangeset for help on using the changeset viewer.