[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #17922] mem_malloc bug

From: Andreas Funcke
Subject: [lwip-devel] [bug #17922] mem_malloc bug
Date: Sun, 21 Jan 2007 09:05:50 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20061204 Firefox/

Follow-up Comment #3, bug #17922 (project lwip):

Hello, I’m a newbie and had problems with the alignment in mem.c too. I
realized a fix which is working in the following way. I hope this information
will help others too.

mem.c (line 68)
static struct mem *ram_end;
#if 0
/* Adam original */
static u8_t ram[MEM_SIZE + sizeof(struct mem) + MEM_ALIGNMENT];
// Andreas alignment fix
static __attribute__ ((aligned (MEM_ALIGNMENT))) u8_t ram[MEM_SIZE +
sizeof(struct mem) + MEM_ALIGNMENT];
// Christiaan alignment fix
static u8_t *ram;
static struct mem ram_heap[1 + ( (MEM_SIZE + sizeof(struct mem) - 1) /
sizeof(struct mem))];


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]