From b422ef99709950ebf9967b7054a48c142f6ac25f Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 17 Dec 2020 20:59:43 +0100 Subject: [PATCH] cpu/fe310: use malloc_thread_safe --- cpu/fe310/Kconfig | 1 + cpu/fe310/Makefile.dep | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cpu/fe310/Kconfig b/cpu/fe310/Kconfig index d1be703e52..805a6d6572 100644 --- a/cpu/fe310/Kconfig +++ b/cpu/fe310/Kconfig @@ -9,6 +9,7 @@ config CPU_ARCH_RISCV bool select HAS_ARCH_RISCV select HAS_PICOLIBC if '$(RIOT_CI_BUILD)' != '1' + select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG config CPU_CORE_RV32M bool diff --git a/cpu/fe310/Makefile.dep b/cpu/fe310/Makefile.dep index 99efb3df64..d5de24f900 100644 --- a/cpu/fe310/Makefile.dep +++ b/cpu/fe310/Makefile.dep @@ -15,3 +15,6 @@ FEATURES_REQUIRED += periph_plic ifneq (,$(filter periph_rtc,$(USEMODULE))) FEATURES_REQUIRED += periph_rtt endif + +# Make calls to malloc and friends thread-safe +USEMODULE += malloc_thread_safe