zephyr/lib/libc
Keith Packard 32a437cbc8 libc/common: Handle MMU/MPU/USERSPACE and alignment requirements in malloc
When CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE is set to -1, make the malloc
arena use all remaining RAM. When an MMU exists, allocate the arena at
startup using k_mem_map. Otherwise, compute the available memory
automatically and use that.

When an MPU is being used to manage the malloc arena, make sure the heap
respects any MPU alignment requirements. Otherwise, align the heap to
sizeof(double).

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-05-09 01:29:16 +09:00
..
arcmwdt
armstdc libc: Move strnlen into common 2023-05-08 09:59:27 +02:00
common libc/common: Handle MMU/MPU/USERSPACE and alignment requirements in malloc 2023-05-09 01:29:16 +09:00
minimal libc: Move abort into common 2023-05-08 09:59:27 +02:00
newlib init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
picolibc libc: Move abort into common 2023-05-08 09:59:27 +02:00
CMakeLists.txt libc: share time() between minimal libc and armclang libc 2023-03-27 09:49:40 +02:00
Kconfig libc: Move abort into common 2023-05-08 09:59:27 +02:00