mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
9e1e245477
This changes `memalign` (and `posix_memalign`) so that it uses an allocation method with the same selection criteria (checking `malloc_alwaysinternal_limit` and picking one of: - always MALLOC_CAP_INTERNAL - MALLOC_CAP_INTERNAL first with fallback - MALLOC_CAP_SPIRAM first with fallback `malloc_alwaysinternal_limit` is in turn set by the options `CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL` and `CONFIG_SPRIAM_USE_CAPS_ALLOC`. This notably affects folks using esp-rs to build rust code for the esp-idf, as all allocations from rust use `memalign`. Merges https://github.com/espressif/esp-idf/pull/12375 |
||
---|---|---|
.. | ||
include | ||
port | ||
test_apps | ||
test_multi_heap_host | ||
tlsf@d2e28f8724 | ||
CMakeLists.txt | ||
heap_caps_init.c | ||
heap_caps_linux.c | ||
heap_caps.c | ||
heap_private.h | ||
heap_task_info.c | ||
heap_trace_standalone.c | ||
internals.md | ||
Kconfig | ||
linker.lf | ||
multi_heap_config.h | ||
multi_heap_internal.h | ||
multi_heap_platform.h | ||
multi_heap_poisoning.c | ||
multi_heap.c |