From 17953d064fd255bae6d77f6fd50d4b5e9032da5c Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Tue, 8 Apr 2025 10:36:22 -0400 Subject: [PATCH] CMSIS: Skip Mutex calls if OS isn't running --- wolfcrypt/src/wc_port.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 09ff75b1f..314e5a65f 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -2845,6 +2845,11 @@ int wolfSSL_HwPkMutexUnLock(void) int wc_InitMutex(wolfSSL_Mutex* m) { int i; + + if(!osKernelRunning()) { + return 0; + } + for (i=0; i