Changeset d7b700d in rtems


Ignore:
Timestamp:
Feb 1, 2010, 6:49:13 PM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.9
Children:
4f112b82
Parents:
8e29715
Message:

2010-02-01 Till Straumann <strauman@…>

PR 1492/bsps

  • shared/startup/sbrk.c: When BSP_sbrk_policy had the value (-1) (-> give all memory to the heap initially) then the computation of the remaining heap size was wrong.
Location:
c/src/lib/libbsp/powerpc
Files:
2 edited

Legend:

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

    r8e29715 rd7b700d  
     12010-02-01      Till Straumann <strauman@slac.stanford.edu>
     2
     3        PR 1492/bsps
     4        * shared/startup/sbrk.c: When BSP_sbrk_policy had the value (-1)
     5        (-> give all memory to the heap initially) then the computation
     6        of the remaining heap size was wrong.
     7
    182009-03-12      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • c/src/lib/libbsp/powerpc/shared/startup/sbrk.c

    r8e29715 rd7b700d  
    9090{
    9191  uint32_t         rval=0;
     92  uint32_t         orig_size;
    9293
    9394  remaining_start =  heap_start;
    94   remaining_size  = *heap_size_p;
     95  orig_size = remaining_size  = *heap_size_p;
    9596
    9697  if (remaining_start < LIMIT_32M &&
     
    106107        switch ( BSP_sbrk_policy ) {
    107108                case (uint32_t)(-1):
    108                         remaining_start  = heap_start + *heap_size_p;
     109                        remaining_start  = heap_start + orig_size;
     110                        *heap_size_p     = orig_size;
    109111                        remaining_size   = 0;
    110112                        /* return a nonzero sbrk_amount because the libsupport code
Note: See TracChangeset for help on using the changeset viewer.