TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)

- Link to bug tracking: https://developer.trustedfirmware.org/T239
pull/9653/head
Michael Schwarcz 2019-02-07 12:05:25 +02:00
parent 1f30b52488
commit 5f2e4b3911
1 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@
#include <stdbool.h>
#include "cmsis.h"
#include "rtx_os.h"
#include "cmsis_os2.h"
#include "tfm_api.h"
@ -30,9 +31,14 @@ static struct ns_lock_state ns_lock = {.init=false, .id=NULL};
/**
* \brief Mutex properties, NS lock
*/
static osRtxMutex_t ns_lock_cb = { 0 };
static const osMutexAttr_t ns_lock_attrib = {
.name = "ns_lock",
.attr_bits = osMutexPrioInherit
.attr_bits = osMutexPrioInherit,
.cb_mem = &ns_lock_cb,
.cb_size = sizeof(ns_lock_cb)
};
/**