lwip-devel
[Top][All Lists]
Advanced

[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:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

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];
#else
// 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))];
*/
#endif


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?17922>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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