Merge pull request #2053 from AlessandroA/guard_svc_priority_set

RTOS: Only set the SVC priority if uVisor is not present
pull/2076/head
Sam Grove 2016-06-29 14:26:16 -05:00 committed by GitHub
commit dff2c313ea
1 changed files with 4 additions and 0 deletions

View File

@ -255,7 +255,11 @@ __inline static void rt_svc_init (void) {
if (prigroup >= sh) {
sh = prigroup + 1U;
}
/* Only change the SVCall priority if uVisor is not present. */
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
NVIC_SYS_PRI2 = ((0xFEFFFFFFU << sh) & 0xFF000000U) | (NVIC_SYS_PRI2 & 0x00FFFFFFU);
#endif /* !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED)) */
#endif
}