lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #6822] Patch places memory pools in separate arrays


From: Kieran Mansley
Subject: [lwip-devel] [patch #6822] Patch places memory pools in separate arrays
Date: Fri, 30 Oct 2009 15:50:31 +0000
User-agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.00

Follow-up Comment #10, patch #6822 (project lwip):

My view is that cc.h should have the code that defines how to place these
bits in different areas.  lwipopts should select which one of these
definitions to use.

For example (but please don't think these are good names, just an
illustration):

in cc.h

#define MEM_ONCHIP _attribute_((section(".onchip_mem")))

in lwipopts.h

#define UDP_PCB_MEM_LOCATION MEM_ONCHIP

in opt.h

#ifndef UDP_PCB_MEM_LOCATION
# define UDP_PCB_MEM_LOCATION
#endif

in wherever the array is defined:

extern u8_t UDP_PCB_MEM_LOCATION udp_pcb[]

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6822>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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