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 <https://github.com/ARMmbed/uvisor/issues/420>.
pull/5107/head
Jaeden Amero 2017-09-14 17:09:12 +01:00
parent 7b428916f5
commit 0d34c3636e
1 changed files with 8 additions and 0 deletions

View File

@ -195,6 +195,14 @@ static void default_idle_hook(void)
core_util_critical_section_exit();
}
#elif defined(FEATURE_UVISOR)
static void default_idle_hook(void)
{
/* uVisor can't sleep. See <https://github.com/ARMmbed/uvisor/issues/420>
* for details. */
}
#else
static void default_idle_hook(void)