extmod: Place lwIP memory in a dedicated section.#19138
extmod: Place lwIP memory in a dedicated section.#19138iabdalkader wants to merge 1 commit intomicropython:masterfrom
Conversation
|
Code size report: |
Place lwIP memory in its own section to allow to relocating it via the linker script. This macro also aligns the memory without adding trailing padding bytes. See comments in src/include/lwip/arch.h Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
|
I realized I can just override this from our custom |
|
If you can do it from |
Yes, it works from our custom |
|
I need to understand more, why is it actually needed, what is the reason to put it in a dedicated section? |

Summary
Place lwIP memory in its own section to allow to relocating it via the linker script. This macro also aligns the memory without adding trailing padding bytes. See comments in
src/include/lwip/arch.hthis is how this macro is intended to be used:Testing
Tested relocating lwIP memory to DRAM, with MBs of buffers, works well.
Generative AI
I did not use generative AI tools when creating this PR.