[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] mem.c bug?
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] mem.c bug? |
Date: |
Mon, 14 Sep 2009 07:41:50 +0200 |
Please enter bug reports into the bug-tracker on the savannah server to prevent
them getting lost.
Simon
> Hi ho,
>
> I gave mem.c my 8KB USB ram for its heap. This sram stands alone in
> memory space.
> mem.c:mem_init() failed, because it creates a struct mem at the first
> address after the heap.
> In my case, that would be an address exception, in normal cases, that
> would be some memory that it does not own.
>
> I fixed it by changing
> #define MEM_SIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SIZE)
> to
> #define MEM_SIZE_ALIGNED LWIP_MEM_ALIGN_SIZE(MEM_SIZE -
> SIZEOF_STRUCT_MEM)
>
>
> dik
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01