Skip to content

Commit 0d34c36

Browse files
committed
mbed_rtx_idle: uVisor: Don't attempt to sleep
When uVisor is enabled, don't attempt to sleep. Attempting to sleep will fail, as per <ARMmbed/uvisor#420>.
1 parent 7b42891 commit 0d34c36

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rtos/TARGET_CORTEX/mbed_rtx_idle.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ static void default_idle_hook(void)
195195
core_util_critical_section_exit();
196196
}
197197

198+
#elif defined(FEATURE_UVISOR)
199+
200+
static void default_idle_hook(void)
201+
{
202+
/* uVisor can't sleep. See <https://github.com/ARMmbed/uvisor/issues/420>
203+
* for details. */
204+
}
205+
198206
#else
199207

200208
static void default_idle_hook(void)

0 commit comments

Comments
 (0)