mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Revert critical section handling back to the original method.
This commit is contained in:
parent
991624461f
commit
61efe2504c
3 changed files with 20 additions and 65 deletions
|
@ -87,10 +87,20 @@ FreeRTOSConfig.h to set the configMEMMODEL value. */
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Critical section handling. */
|
||||
#define portDISABLE_INTERRUPTS() __DI();
|
||||
#define portENABLE_INTERRUPTS() __EI();
|
||||
#define portENTER_CRITICAL() vPortEnterCritical()
|
||||
#define portEXIT_CRITICAL() vPortExitCritical()
|
||||
#if configKERNEL_INTERRUPT_PRIORITY != 6
|
||||
#error configKERNEL_INTERRUPT_PRIORITY (set in FreeRTOSConfig.h) must match the ILM value set in the following line - #06H being the default.
|
||||
#endif
|
||||
#define portENABLE_INTERRUPTS() __asm(" MOV ILM, #06h ")
|
||||
#define portDISABLE_INTERRUPTS() __asm(" MOV ILM, #07h ")
|
||||
|
||||
#define portENTER_CRITICAL() \
|
||||
{ __asm(" PUSHW PS "); \
|
||||
portDISABLE_INTERRUPTS(); \
|
||||
}
|
||||
|
||||
#define portEXIT_CRITICAL() \
|
||||
{ __asm(" POPW PS "); \
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue