Skip to content

Commit

Permalink
mbed_rtx_idle: uVisor: Don't attempt to sleep
Browse files Browse the repository at this point in the history
When uVisor is enabled, don't attempt to sleep. Attempting to sleep will
fail, as per <ARMmbed/uvisor#420>.
  • Loading branch information
Patater authored and adbridge committed Sep 19, 2017
1 parent 36c7b7e commit 60bf2d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rtos/TARGET_CORTEX/mbed_rtx_idle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60bf2d6

Please sign in to comment.