esp-idf/components/newlib
Cody P Schafer 9e1e245477 fix(heap): memalign respect malloc_alwaysinternal_limit
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
2023-11-01 01:58:27 +08:00
..
platform_include change(newlib): update newlib according to new internal structures 2023-10-09 12:13:02 +04:00
port change(newlib): use GCC builtin subword atomics 2023-10-09 12:13:02 +04:00
priv_include
test_apps fix(heap): memalign respect malloc_alwaysinternal_limit 2023-11-01 01:58:27 +08:00
.gitignore
CMakeLists.txt refactor(linux): excluded all non-Linux components from build 2023-10-16 17:06:54 +08:00
COPYING.NEWLIB
Kconfig
abort.c
assert.c
esp32-spiram-rom-functions-c.lf fix(newlib): fix esp32-spiram-rom-functions entries name 2023-10-09 12:13:02 +04:00
getentropy.c feat(newlib): Implement getentropy() function 2023-08-08 18:06:58 +03:00
heap.c fix(heap): memalign respect malloc_alwaysinternal_limit 2023-11-01 01:58:27 +08:00
locks.c
newlib.lf change(newlib): use GCC builtin subword atomics 2023-10-09 12:13:02 +04:00
newlib_init.c change(newlib): update newlib according to new internal structures 2023-10-09 12:13:02 +04:00
poll.c
pthread.c feat(pthread): added pthread_condattr* stubs to avoid linker errors 2023-09-26 12:17:38 +08:00
random.c
realpath.c
reent_init.c change(newlib): update newlib according to new internal structures 2023-10-09 12:13:02 +04:00
sbom.yml feat(newlib): Add sbom manifest file 2023-10-13 19:15:03 +04:00
sdkconfig.rename.esp32
sdkconfig.rename.esp32c3
sdkconfig.rename.esp32s2
sdkconfig.rename.esp32s3
stdatomic.c
syscalls.c
sysconf.c
system_libs.lf build: Adds support for Clangs's toolchain compiler-rt 2023-06-08 16:49:37 +03:00
termios.c
time.c fix(newlib): included limits.h to fix warning 2023-07-12 10:03:03 +08:00