Skip to content

Commit 6bf7a68

Browse files
Pataterbulislaw
authored andcommitted
RTX5: uVisor: Defer to uVisor for SVCall priority
Only set the SVCall priority if uVisor is not present. If uVisor is present, keep using whatever priorities it has already set up.
1 parent c19defe commit 6bf7a68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_core_cm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,11 @@ __STATIC_INLINE void SVC_Initialize (void) {
606606
if (p >= n) {
607607
n = p + 1U;
608608
}
609+
610+
/* Only change the SVCall priority if uVisor is not present. */
611+
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
609612
SCB->SHP[7] = (uint8_t)(0xFEU << n);
613+
#endif
610614
#elif (__ARM_ARCH_6M__ == 1U)
611615
uint32_t n;
612616

0 commit comments

Comments
 (0)