Skip to content

Commit 5f2e4b3

Browse files
author
Michael Schwarcz
committed
TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
- Link to bug tracking: https://developer.trustedfirmware.org/T239
1 parent 1f30b52 commit 5f2e4b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/TARGET_PSA/TARGET_TFM/COMPONENT_NSPE/interface/src/tfm_ns_lock_rtx.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <stdbool.h>
99

1010
#include "cmsis.h"
11+
#include "rtx_os.h"
1112
#include "cmsis_os2.h"
1213

1314
#include "tfm_api.h"
@@ -30,9 +31,14 @@ static struct ns_lock_state ns_lock = {.init=false, .id=NULL};
3031
/**
3132
* \brief Mutex properties, NS lock
3233
*/
34+
35+
static osRtxMutex_t ns_lock_cb = { 0 };
36+
3337
static const osMutexAttr_t ns_lock_attrib = {
3438
.name = "ns_lock",
35-
.attr_bits = osMutexPrioInherit
39+
.attr_bits = osMutexPrioInherit,
40+
.cb_mem = &ns_lock_cb,
41+
.cb_size = sizeof(ns_lock_cb)
3642
};
3743

3844
/**

0 commit comments

Comments
 (0)