Changeset 5b07faf in rtems


Ignore:
Timestamp:
03/07/06 21:56:45 (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
ede4f16
Parents:
79eb6e21
Message:

2006-03-07 Aaron Frye <aaron@…>

PR 719/bsps

  • m68kpretaskinghook.c: The optimizer on gcc 3.4.2 assumes that the address of a variable cannot be 0, so it optimizes out any such checks. this breaks the shared m68k bsp_pretasking_hook() which uses such a check to determine heap size during runtime.
Location:
c/src/lib/libbsp/m68k/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/shared/ChangeLog

    r79eb6e21 r5b07faf  
     12006-03-07      Aaron Frye <aaron@frye.com>
     2
     3        PR 719/bsps
     4        * m68kpretaskinghook.c: The optimizer on gcc 3.4.2 assumes that the
     5        address of a variable cannot be 0, so it optimizes out any such
     6        checks. this breaks the shared m68k bsp_pretasking_hook() which uses
     7        such a check to determine heap size during runtime.
     8
    192004-03-05      Joel Sherrill <joel@OARcorp.com>
    210
  • c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c

    r79eb6e21 r5b07faf  
    3737extern void          *_RamBase;
    3838extern void          *_WorkspaceBase;
    39 extern void          *_HeapSize;
     39extern volatile void *_HeapSize;
    4040
    4141
     
    4444void bsp_pretasking_hook(void)
    4545{
    46     void         *heapStart;
    47     unsigned long heapSize = (unsigned long)&_HeapSize;
    48     unsigned long ramSpace;
     46    void                   *heapStart;
     47    volatile unsigned long  heapSize = (volatile unsigned long)&_HeapSize;
     48    unsigned long           ramSpace;
    4949
    5050    heapStart =  (void *)
    5151       ((unsigned long)&_WorkspaceBase + BSP_Configuration.work_space_size);
    52     ramSpace = (unsigned long) &_RamBase + _M68k_Ramsize - (unsigned long) heapStart;
     52    ramSpace = (unsigned long) &_RamBase + _M68k_Ramsize -
     53               (unsigned long) heapStart;
    5354
    5455    if (heapSize == 0)
Note: See TracChangeset for help on using the changeset viewer.