Changeset 7f6bb8c in rtems


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

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

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

Legend:

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

    r2d25867 r7f6bb8c  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * shared/bspstart.c: Eliminate copies of the Configuration Table. Use
     4        the RTEMS provided accessor macros to obtain configuration fields.
     5
    162007-12-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/sparc/shared/bspstart.c

    r2d25867 r7f6bb8c  
    3131#include <rtems/libcsupport.h>
    3232#include <rtems/bspIo.h>
    33 
    34 /*
    35  *  The original table from the application and our copy of it with
    36  *  some changes.
    37  */
    38 
    39 extern rtems_configuration_table  Configuration;
    40 rtems_configuration_table         BSP_Configuration;
    4133
    4234/*
     
    9688    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
    9789
    98   heap_size = BSP_Configuration.work_space_start - (void *)&end - STACK_SIZE;
     90  heap_size = Configuration.work_space_start - (void *)&end - STACK_SIZE;
    9991  heap_size &= 0xfffffff0;  /* keep it as a multiple of 16 bytes */
    10092
     
    119111
    120112  work_space_start =
    121     (unsigned char *)rdb_start - BSP_Configuration.work_space_size;
     113    (unsigned char *)rdb_start - rtems_configuration_get_work_space_size();
    122114
    123115  if ( work_space_start <= (unsigned char *)&end ) {
     
    126118  }
    127119
    128   BSP_Configuration.work_space_start = work_space_start;
     120  Configuration.work_space_start = work_space_start;
    129121 
    130122  #ifdef LEON2
Note: See TracChangeset for help on using the changeset viewer.