Skip to content

Commit 60bf2d6

Browse files
Patateradbridge
authored andcommitted
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 36c7b7e commit 60bf2d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rtos/TARGET_CORTEX/mbed_rtx_idle.cpp

Lines changed: 8 additions & 0 deletions
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)