[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] Alignment problem i pbuf_alloc()
From: |
K.J. Mansley |
Subject: |
RE: [lwip-users] Alignment problem i pbuf_alloc() |
Date: |
24 May 2004 14:19:06 +0100 |
On Mon, 2004-05-24 at 09:35, James Yates wrote:
> Since I rely on malloc and free, I simply changed the 2 defines as
> shown:
>
> #define MEM_ALIGN(size) (size)
> #define MEM_ALIGN_SIZE(addr) (addr)
>
> Give it a try and see if it works for you. Hope this helps.
The design is intended to be used as you have suggested: if you find
your OS has standard support for memory allocation that you prefer to
use, switching lwip to use those should just be a matter of changing a
couple of macros. Perhaps we should document this a bit better, as it
sounds like it took a bit of effort for you to discover this?
Thanks
Kieran