Re: Memory protection and picolibc global state
Boie, Andrew P
Hi Keith,
toggle quoted messageShow quoted text
Sorry, just saw this. There are some k_mem_partitions defined which can help with this, z_malloc_partition and z_libc_partition. z_malloc_partition is for the malloc() arena, which is global. z_libc_partition is for any other globals associated with the libc. These are defined in include/sys/libc-hooks.h along with the further comments. This situation is not ideal. We would eventually like separate libc library globals and malloc arenas on a per memory domain basis (not per thread). This is, to put it mildly, tricky to do when all you have is an MPU. There's a issue here about it: https://github.com/zephyrproject-rtos/zephyr/issues/25891 the last comment has my current thinking on this problem. HTH, Andrew
-----Original Message-----
|
|