Changeset 5b07faf in rtems
- Timestamp:
- 03/07/06 21:56:45 (18 years ago)
- Children:
- ede4f16
- Parents:
- 79eb6e21
- Location:
- c/src/lib/libbsp/m68k/shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/shared/ChangeLog
r79eb6e21 r5b07faf 1 2006-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 1 9 2004-03-05 Joel Sherrill <joel@OARcorp.com> 2 10 -
c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c
r79eb6e21 r5b07faf 37 37 extern void *_RamBase; 38 38 extern void *_WorkspaceBase; 39 extern vo id*_HeapSize;39 extern volatile void *_HeapSize; 40 40 41 41 … … 44 44 void bsp_pretasking_hook(void) 45 45 { 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; 49 49 50 50 heapStart = (void *) 51 51 ((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; 53 54 54 55 if (heapSize == 0)
Note: See TracChangeset
for help on using the changeset viewer.