Skip to content

Commit 2f7a841

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 32d04a0 commit 2f7a841

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ __STATIC_INLINE void SVC_Setup (void) {
161161
if (p >= n) {
162162
n = p + 1U;
163163
}
164+
/* Only change the SVCall priority if uVisor is not present. */
165+
#if !(defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED))
164166
SCB->SHP[7] = (uint8_t)(0xFEU << n);
167+
#endif
165168
#elif (defined(__ARM_ARCH_6M__) && (__ARM_ARCH_6M__ != 0))
166169
uint32_t n;
167170

0 commit comments

Comments
 (0)