[Bug 1873] Not enough workspace reserved with RTEMS Debug enabled.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sun Aug 21 19:51:45 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1873

Joel Sherrill <joel.sherrill at oarcorp.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-08-21 14:51:44 CDT ---
Committing this.  I suspect that when you add the the header, user block, and
footer, it is resulting in needing a CPU alignment.  


Index: score/include/rtems/score/heap.h
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/score/include/rtems/score/heap.h,v
retrieving revision 1.45
diff -u -r1.45 heap.h
--- score/include/rtems/score/heap.h    17 Feb 2011 14:17:09 -0000    1.45
+++ score/include/rtems/score/heap.h    21 Aug 2011 19:50:51 -0000
@@ -177,7 +177,9 @@
   } Heap_Protection_block_end;

   #define HEAP_PROTECTION_HEADER_SIZE \
-    (sizeof(Heap_Protection_block_begin) + sizeof(Heap_Protection_block_end))
+    (sizeof(Heap_Protection_block_begin) + \
+     CPU_ALIGNMENT + \
+     sizeof(Heap_Protection_block_end))
 #endif

 /**
bash-4.1$

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list