lwIP: calling pbuf_free in interrupt context without protection in RAW API mode
yzhang0231 opened this issue · comments
In bare-metal application derived from a hello world template when default configuration is used, emacps_send_handler
will be called in interrupt context, in which xemacps_process_sent_bds
calls pbuf_free.
However, the protection macro for calling mem_free/pbuf_free, LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
, will only be emit to lwipopts.h in SOCKET API mode:
embeddedsw/ThirdParty/sw_services/lwip213/data/lwip213.tcl
Lines 546 to 575 in 8fca1ac
The user manual from lwIP can be found below:
embeddedsw/ThirdParty/sw_services/lwip213/src/lwip-2.1.3/CHANGELOG
Lines 2391 to 2395 in 8fca1ac