From 14aa34704024f16b8b8ac975dd789b35936d6a00 Mon Sep 17 00:00:00 2001 From: Michael Schwarcz Date: Thu, 7 Mar 2019 11:34:16 +0200 Subject: [PATCH] TF-M config: Add max_ns_thread_count parameter --- .../TARGET_PSA/TARGET_TFM/COMPONENT_SPE/mbed_lib.json | 9 ++++++++- .../TESTS/blockdevice/general_block_device/main.cpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/mbed_lib.json b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/mbed_lib.json index 771fb9411a..d54f6e3958 100644 --- a/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/mbed_lib.json +++ b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/mbed_lib.json @@ -1,4 +1,11 @@ { "name": "tfm-s", - "macros": ["MBED_FAULT_HANDLER_DISABLED", "BYPASS_NVSTORE_CHECK=1"] + "macros": ["MBED_FAULT_HANDLER_DISABLED", "BYPASS_NVSTORE_CHECK=1"], + "config": { + "max_ns_thread_count": { + "help": "maximum allowed number of non-secure threads", + "macro_name": "TFM_MAX_NS_THREAD_COUNT", + "value": 10 + } + } } diff --git a/features/storage/TESTS/blockdevice/general_block_device/main.cpp b/features/storage/TESTS/blockdevice/general_block_device/main.cpp index a91715c5aa..9e58c5927e 100644 --- a/features/storage/TESTS/blockdevice/general_block_device/main.cpp +++ b/features/storage/TESTS/blockdevice/general_block_device/main.cpp @@ -51,7 +51,7 @@ using namespace utest::v1; #define TEST_BLOCK_COUNT 10 #define TEST_ERROR_MASK 16 -#define TEST_NUM_OF_THREADS 4 +#define TEST_NUM_OF_THREADS 5 #define TEST_THREAD_STACK_SIZE 1024 const struct {