cpu/arm7_common: use malloc_thread_safe
This should fix concurrent dynamic memory allocation.
This commit is contained in:
parent
44c4f1e307
commit
915d14eb98
@ -11,6 +11,7 @@ config CPU_ARCH_ARMV4T
|
|||||||
select HAS_ARCH_ARM
|
select HAS_ARCH_ARM
|
||||||
select HAS_CPP
|
select HAS_CPP
|
||||||
select HAS_LIBSTDCPP
|
select HAS_LIBSTDCPP
|
||||||
|
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
|
||||||
|
|
||||||
config CPU_CORE_ARM7TDMI_S
|
config CPU_CORE_ARM7TDMI_S
|
||||||
bool
|
bool
|
||||||
|
|||||||
@ -10,3 +10,6 @@ else
|
|||||||
# use the nano-specs of Newlib when available
|
# use the nano-specs of Newlib when available
|
||||||
USEMODULE += newlib_nano
|
USEMODULE += newlib_nano
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Make calls to malloc and friends thread-safe
|
||||||
|
USEMODULE += malloc_thread_safe
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user