Changeset db3ca1f in rtems


Ignore:
Timestamp:
Aug 5, 2002, 4:55:50 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
75adbe5f
Parents:
6ada2b1e
Message:

2002-08-05 Joel Sherrill <joel@…>

  • startup/bspstart.c, startup/linkcmds: Per PR247 , fix the linkcmds to avoid overlapping sections and reworked the way the heap and workspace are calculated.
Location:
c/src/lib/libbsp/h8300/h8sim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/ChangeLog

    r6ada2b1e rdb3ca1f  
     12002-08-05      Joel Sherrill <joel@OARcorp.com>
     2
     3        * startup/bspstart.c, startup/linkcmds: Per PR247 , fix the linkcmds
     4        to avoid overlapping sections and reworked the way the heap and
     5        workspace are calculated.
     6
    172002-07-21      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c

    r6ada2b1e rdb3ca1f  
    5757void bsp_pretasking_hook(void)
    5858{
    59     extern int HeapBase;
    60     extern int HeapSize;
    61     void         *heapStart = &HeapBase;
    62     unsigned long heapSize = (unsigned long)&HeapSize;
     59    void         *heapStart;
     60    unsigned long heapSize;
    6361    unsigned long ramSpace;
     62    extern int WorkspaceBase;
    6463
     64    heapStart =  (void *)
     65       ((unsigned long)&WorkspaceBase + BSP_Configuration.work_space_size);
     66    if ( (unsigned long) heapStart > (256 * 1024) )
     67       rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P');
     68    heapSize = (256 * 1024) - (unsigned long)(heapStart);
    6569    bsp_libc_init(heapStart, heapSize, 0);
    6670
     
    7983void bsp_start( void )
    8084{
    81   extern int _end;
    8285  extern int WorkspaceBase;
    8386  /* Configure Number of Register Caches */
  • c/src/lib/libbsp/h8300/h8sim/startup/linkcmds

    r6ada2b1e rdb3ca1f  
    5454         _etext = .;
    5555    }  >ram
    56    .tors : {
     56   .tors SIZEOF(.text) + ADDR(.text): {
    5757        ___ctors = . ;
    5858        *(.ctors)
     
    6262        ___dtors_end = . ;
    6363    }  >ram
    64     .data SIZEOF(.text) + ADDR(.text):
     64    .data SIZEOF(.tors) + ADDR(.tors):
    6565    {
    6666        *(.data)
     67        *(.gcc_exc*)
    6768        CONSTRUCTORS
    6869         _edata = .;
     
    7879        _clear_end = .;
    7980        _WorkspaceBase = .;
    80         . += 64K;       /* reserve some memory for workspace */
    81         _HeapBase = .;
    82         . += _HeapSize; /* reserve some memory for heap */
    8381         _end = .;
    8482         __end = .;
Note: See TracChangeset for help on using the changeset viewer.