[haiku-commits] r38997 - haiku/trunk/src/system/kernel/debug

  • From: ithamar.adema@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 18 Oct 2010 11:43:00 +0200 (CEST)

Author: ithamar
Date: 2010-10-18 11:42:59 +0200 (Mon, 18 Oct 2010)
New Revision: 38997
Changeset: http://dev.haiku-os.org/changeset/38997

Modified:
   haiku/trunk/src/system/kernel/debug/debug_heap.cpp
Log:
* Force GCC to align sInitialHeap on 8-byte boundary, otherwise Free() will 
complain (hit on ARM)

Modified: haiku/trunk/src/system/kernel/debug/debug_heap.cpp
===================================================================
--- haiku/trunk/src/system/kernel/debug/debug_heap.cpp  2010-10-18 09:34:36 UTC 
(rev 38996)
+++ haiku/trunk/src/system/kernel/debug/debug_heap.cpp  2010-10-18 09:42:59 UTC 
(rev 38997)
@@ -14,7 +14,7 @@
 
 #define INITIAL_HEAP_SIZE      B_PAGE_SIZE
 
-static char sInitialHeap[INITIAL_HEAP_SIZE];
+static char sInitialHeap[INITIAL_HEAP_SIZE] __attribute__ ((aligned (8)));
 static void* sHeapBase = sInitialHeap;
 static size_t sHeapSize = INITIAL_HEAP_SIZE;
 


Other related posts:

  • » [haiku-commits] r38997 - haiku/trunk/src/system/kernel/debug - ithamar . adema