[hypercos] [PATCH] misc: change _alloc to 8bytes aligned

  • From: Howard Chen <ibanezchen@xxxxxxxxx>
  • To: socware.help@xxxxxxxxx, hypercos@xxxxxxxxxxxxx
  • Date: Thu, 16 Jun 2016 17:37:48 +0800

Some CPU core requires a 8bytes aligned stack.
---
 include/core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/core.h b/include/core.h
index 9ad85f6..6697e8e 100644
--- a/include/core.h
+++ b/include/core.h
@@ -45,7 +45,7 @@ void core_start(void);
 /// \param align_bits number of bits the required memory should align to
 void *core_alloc(unsigned sz, int align_bits);
 
-#define _alloc(_sz)      core_alloc(_sz, 2)
+#define _alloc(_sz)      core_alloc(_sz, 3)
 
 /// number of samples on busy
 extern unsigned core_nbusy;
-- 
2.5.0


Other related posts:

  • » [hypercos] [PATCH] misc: change _alloc to 8bytes aligned - Howard Chen