1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/newlib_syscalls_default
Marian Buschsieweke 375aed13e6
sys/newlib_syscalls_default: fix race condition in __sinit()
This eagerly calls `__sinit()` instead of lazy initialization upon the
first call to stdio (e.g. `puts()`, `printf()`). The issue is that
without locking (as is currently the case for all RIOT platforms but
ESP) two concurrent "first calls" may result in concurrent
initialization of the same structure and data corruption.

Fixes https://github.com/RIOT-OS/RIOT/issues/20067
2024-02-16 07:21:28 +01:00
..
Makefile newlib: Split newlib into one generic part and one default syscalls part 2017-04-05 13:55:38 +02:00
syscalls.c sys/newlib_syscalls_default: fix race condition in __sinit() 2024-02-16 07:21:28 +01:00