cpu/mips32r2_common: use malloc_thread_safe

This should fix concurrent dynamic memory allocation.
This commit is contained in:
Marian Buschsieweke 2020-12-18 18:17:32 +01:00
parent 44c4f1e307
commit 7f7bf8454b
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ config CPU_ARCH_MIPS32R2
select HAS_CPP
select HAS_LIBSTDCPP
select HAS_PERIPH_PM
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
config CPU_CORE_M4K
bool

View File

@ -9,3 +9,6 @@ FEATURES_REQUIRED += periph_timer
ifeq (,$(filter newlib_syscalls_mips_uhi,$(USEMODULE)))
USEMODULE += newlib_syscalls_default
endif
# Make calls to malloc and friends thread-safe
USEMODULE += malloc_thread_safe