Can the `configUSE_NEWLIB_REENTRANT` be applicable to FreeRTOS?

Not very familiar with the newlib reentrant feature, I’d like to ask whether it can be used on an SMP system.
Thanks

The current implementation may not be compatible with SMP systems. I believe that in an SMP environment, each core would require its own _impure_ptr, which would need to be updated during context switches. The existing implementation assumes a single global _impure_ptr, an assumption that probably won’t hold in a multi-core setup. We need to verify these concerns with the newlib maintainers and confirm whether newlib supports multi-core environments at all.

1 Like

Thanks for your confirm!