# HG changeset patch # User Emmanuel Gil Peyrot # Date 1424625659 -3600 # Node ID 5ba54fc65608c987764823ebc49bfeaea8ed487e # Parent 4e831ec746e42fd6697ff6b296e04d05472e2336 Revert a stupid s/memalign/calloc/ in soc:U initialisation. diff --git a/source/main.c b/source/main.c --- a/source/main.c +++ b/source/main.c @@ -92,7 +92,7 @@ struct network_t *networkInit(const char const unsigned SOC_ALIGN = 0x1000; const unsigned SOC_BUFFERSIZE = 0x100000; - SOC_buffer = (u32*)calloc(SOC_ALIGN, SOC_BUFFERSIZE); + SOC_buffer = (u32*)memalign(SOC_ALIGN, SOC_BUFFERSIZE); if (!SOC_buffer) { printf("calloc() failed.\n"); return NULL;