File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ extern void vPortSVCHandler( void );
137
137
extern void xPortPendSVHandler ( void );
138
138
/*-----------------------------------------------------------*/
139
139
140
+ /* store Max Syscall Interrupt Priority to be able to get it
141
+ * in portasm.s without included FreeRTOSConfig.h
142
+ */
143
+ const uint32_t portConfigMaxSyscallIntPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY ;
144
+
140
145
/* Each task maintains its own interrupt status in the critical nesting
141
146
* variable. */
142
147
static UBaseType_t uxCriticalNesting = 0xaaaaaaaa ;
Original file line number Diff line number Diff line change 26
26
*
27
27
* /
28
28
29
- #include <FreeRTOSConfig.h>
30
29
31
30
RSEG CODE:CODE( 2 )
32
31
thumb
33
32
34
33
EXTERN pxCurrentTCB
35
34
EXTERN vTaskSwitchContext
35
+ EXTERN portConfigMaxSyscallIntPriority
36
36
37
37
PUBLIC xPortPendSVHandler
38
38
PUBLIC vPortSVCHandler
@@ -52,7 +52,7 @@ xPortPendSVHandler:
52
52
str r0 , [ r2 ] / * Save the new top of stack into the first member of the TCB. * /
53
53
54
54
stmdb sp ! , {r3 , r14 }
55
- mov r0 , #configMAX_SYSCALL_INTERRUPT_PRIORITY
55
+ ldr r0 , =portConfigMaxSyscallIntPriority
56
56
msr basepri , r0
57
57
dsb
58
58
isb
You can’t perform that action at this time.
0 commit comments