Ignore:
Timestamp:
08/05/02 16:55:50 (20 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 */
Note: See TracChangeset for help on using the changeset viewer.