mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
update IAR CM3 port to avoid including FreeRTOSConfig.h in portasm.s
This commit is contained in:
parent
78e0cc778a
commit
5b67935daf
|
@ -137,6 +137,11 @@ extern void vPortSVCHandler( void );
|
|||
extern void xPortPendSVHandler( void );
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* store Max Syscall Interrupt Priority to be able to get it
|
||||
* in portasm.s without included FreeRTOSConfig.h
|
||||
*/
|
||||
const uint32_t portConfigMaxSyscallIntPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY;
|
||||
|
||||
/* Each task maintains its own interrupt status in the critical nesting
|
||||
* variable. */
|
||||
static UBaseType_t uxCriticalNesting = 0xaaaaaaaa;
|
||||
|
|
|
@ -26,13 +26,13 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <FreeRTOSConfig.h>
|
||||
|
||||
RSEG CODE:CODE(2)
|
||||
thumb
|
||||
|
||||
EXTERN pxCurrentTCB
|
||||
EXTERN vTaskSwitchContext
|
||||
EXTERN portConfigMaxSyscallIntPriority
|
||||
|
||||
PUBLIC xPortPendSVHandler
|
||||
PUBLIC vPortSVCHandler
|
||||
|
@ -52,7 +52,7 @@ xPortPendSVHandler:
|
|||
str r0, [r2] /* Save the new top of stack into the first member of the TCB. */
|
||||
|
||||
stmdb sp!, {r3, r14}
|
||||
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
|
||||
ldr r0, =portConfigMaxSyscallIntPriority
|
||||
msr basepri, r0
|
||||
dsb
|
||||
isb
|
||||
|
|
Loading…
Reference in a new issue